We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0bc452b + 6da384d commit a3850e7Copy full SHA for a3850e7
lib/prism/polyfill/scan_byte.rb
@@ -3,7 +3,7 @@
3
require "strscan"
4
5
# Polyfill for StringScanner#scan_byte, which didn't exist until Ruby 3.4.
6
-if !(StringScanner.instance_methods.include?(:scan_byte))
+if !(StringScanner.method_defined?(:scan_byte))
7
StringScanner.include(
8
Module.new {
9
def scan_byte # :nodoc:
0 commit comments