module RegexpMatchPolyfill::RegexpExtension

Public Instance Methods

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