Class: Regexp

Inherits:
Object show all
Defined in:
lib/marfa/helpers/classes/regexp.rb

Overview

Regexp class extending Helpers from Rails

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


8
9
10
# File 'lib/marfa/helpers/classes/regexp.rb', line 8

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

#multiline?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/marfa/helpers/classes/regexp.rb', line 4

def multiline?
  options & MULTILINE == MULTILINE
end