Class: Regexp

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_extended/patch/5_0/regex_match.rb

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


6
7
8
# File 'lib/active_record_extended/patch/5_0/regex_match.rb', line 6

def match?(string, pos = 0)
  !(!match(string, pos))
end