Class: Regexp

Inherits:
Object show all
Defined in:
lib/present_object/core_ext/regexp.rb

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/present_object/core_ext/regexp.rb', line 9

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

#multiline?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/present_object/core_ext/regexp.rb', line 4

def multiline?
  options & MULTILINE == MULTILINE
end