Method: Words::PureWordnetConnection#initialize

Defined in:
lib/wordnet_connectors/pure_wordnet_connection.rb

#initialize(data_path, wordnet_path) ⇒ PureWordnetConnection

Constructs a new pure ruby connector for use with the words wordnet class.

Parameters:

  • data_path (Pathname)

    Specifies the directory within which constructed datasets can be found (evocations etc…)

  • wordnet_path (Pathname)

    Specifies the directory within which the wordnet dictionary can be found.

Raises:



53
54
55
56
57
58
59
# File 'lib/wordnet_connectors/pure_wordnet_connection.rb', line 53

def initialize(data_path, wordnet_path)

    @data_path, @wordnet_path, @connection_type, @connected = data_path, wordnet_path, :pure, false

    open!

end