Module: Polyfill::V2_4::Regexp

Defined in:
lib/polyfill/v2_4/regexp.rb

Instance Method Summary collapse

Instance Method Details

#match?(string, position = 0) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/polyfill/v2_4/regexp.rb', line 4

def match?(string, position = 0)
  !!(string[position..-1] =~ self)
end