Class: StringMatcher::Default

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

Class Method Summary collapse

Class Method Details

.match?(string, regexp) ⇒ Boolean



3
4
5
# File 'lib/string_matcher/default.rb', line 3

def self.match?(string, regexp)
  string.include? regexp
end