module Polyfill::V2_4::Regexp

Public Instance Methods

match?(string, position = 0) click to toggle source
# File lib/polyfill/v2_4/regexp.rb, line 4
def match?(string, position = 0)
  !!(string[position..-1] =~ self)
end