Version 9.8.0 "New York"

As shown the screenshot above, double slash "//" is recognized as comment in Ruby code.
def match?(string, pos = 0)
!!match(string, pos)
end unless //.respond_to?(:match?)
*"//" is a representation of Regex object in the case.
Thank you,