Class: Sentino::Word
- Inherits:
-
Object
- Object
- Sentino::Word
- Defined in:
- lib/sentino/word.rb
Instance Method Summary collapse
-
#initialize(reference) ⇒ Word
constructor
A new instance of Word.
- #match(string) ⇒ Object
Constructor Details
#initialize(reference) ⇒ Word
Returns a new instance of Word.
4 5 6 |
# File 'lib/sentino/word.rb', line 4 def initialize(reference) @reference = prepare_string(reference) end |
Instance Method Details
#match(string) ⇒ Object
8 9 10 11 |
# File 'lib/sentino/word.rb', line 8 def match(string) splitted_array = prepare_string(string) check(splitted_array) end |