Class: Ion::Indices::Metaphone
- Inherits:
-
Text
- Object
- Ion::Index
- Text
- Ion::Indices::Metaphone
- Defined in:
- lib/ion/indices/metaphone.rb
Instance Attribute Summary
Attributes inherited from Ion::Index
Instance Method Summary collapse
Methods inherited from Text
deindex, #index, #search, #search_words
Methods inherited from Ion::Index
deindex, del, #index, #initialize, #search
Constructor Details
This class inherits a constructor from Ion::Index
Instance Method Details
#index_words(str) ⇒ Object
3 4 5 |
# File 'lib/ion/indices/metaphone.rb', line 3 def index_words(str) words = ::Text::Metaphone.(str).strip.split(' ') end |