Module: Linguistics::EN::Stemmer::SingletonMethods
- Included in:
- Linguistics::EN::Stemmer
- Defined in:
- lib/linguistics/en/stemmer.rb
Overview
Container for methods intended to extend the EN module as singleton methods.
Instance Method Summary collapse
-
#has_stemmer? ⇒ Boolean
Returns
true
if Ruby-Stemmer was loaded okay. -
#stemmer_error ⇒ Object
If #has_stemmer? returns
false
, this can be called to fetch the exception which was raised when Ruby-Stemmer was loaded.
Instance Method Details
#has_stemmer? ⇒ Boolean
Returns true
if Ruby-Stemmer was loaded okay
35 |
# File 'lib/linguistics/en/stemmer.rb', line 35 def has_stemmer? ; @has_stemmer; end |
#stemmer_error ⇒ Object
If #has_stemmer? returns false
, this can be called to fetch the exception which was raised when Ruby-Stemmer was loaded.
39 |
# File 'lib/linguistics/en/stemmer.rb', line 39 def stemmer_error ; @stemmer_error; end |