Class: Sentino::Pattern

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

Instance Method Summary collapse

Constructor Details

#initialize(reference) ⇒ Pattern

Returns a new instance of Pattern.



3
4
5
# File 'lib/sentino/pattern.rb', line 3

def initialize(reference)
  @reference = prepare_string(reference)
end

Instance Method Details

#match(string) ⇒ Object



7
8
9
# File 'lib/sentino/pattern.rb', line 7

def match(string)
  check(string)
end