Module: Fusu::Regexp

Extended by:
Regexp
Included in:
Regexp
Defined in:
lib/fusu/regexp.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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

def multiline?(regexp)

regexp.options & MULTILINE == MULTILINE

end

Returns:

  • (Boolean)


8
9
10
# File 'lib/fusu/regexp.rb', line 8

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