Class: Sentino::Pattern
- Inherits:
-
Object
- Object
- Sentino::Pattern
- Defined in:
- lib/sentino/pattern.rb
Instance Method Summary collapse
-
#initialize(reference) ⇒ Pattern
constructor
A new instance of Pattern.
- #match(string) ⇒ Object
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 |