Class: Regexp

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

Overview

Add Regexp#match? to pre-2.4 ruby

Instance Method Summary collapse

Instance Method Details

#match?(str) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/fat_table/patches.rb', line 33

def match?(str)
  self =~ str
end