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

Instance Method Details

#has_wordnet?Boolean

Returns true if WordNet was loaded okay

Returns:

  • (Boolean)


84
# File 'lib/linguistics/en/wordnet.rb', line 84

def has_wordnet? ; @has_wordnet; end

#wordnet_errorObject

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