Class: Sentino::Word

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

Instance Method Summary collapse

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