Class: Regexp

Inherits:
Object show all
Defined in:
lib/dirwatch/extensions/regexp.rb

Instance Method Summary collapse

Instance Method Details

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

Returns:

  • (Boolean)


3
4
5
# File 'lib/dirwatch/extensions/regexp.rb', line 3

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