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