Class: MongoidSearch::FastStemmer
- Inherits:
-
Object
- Object
- MongoidSearch::FastStemmer
- Defined in:
- lib/mongoid_search/stemmers.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call(word) ⇒ Object
-
#initialize(*args) ⇒ FastStemmer
constructor
A new instance of FastStemmer.
Constructor Details
#initialize(*args) ⇒ FastStemmer
Returns a new instance of FastStemmer.
13 14 |
# File 'lib/mongoid_search/stemmers.rb', line 13 def initialize(*args) end |
Class Method Details
.available? ⇒ Boolean
9 10 11 |
# File 'lib/mongoid_search/stemmers.rb', line 9 def self.available? defined?(::Stemmer) end |
Instance Method Details
#call(word) ⇒ Object
16 17 18 |
# File 'lib/mongoid_search/stemmers.rb', line 16 def call(word) ::Stemmer.stem_word(word) end |