Class: Regexp

Inherits:
Object
  • Object
show all
Defined in:
lib/patch.rb

Instance Method Summary collapse

Instance Method Details

#match?(a) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/patch.rb', line 13

def match?(a)
  !match(a).nil?
end