Class: DictionaryLookup::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dictionary_lookup.rb

Class Method Summary collapse

Class Method Details

.define(term, config = {}) ⇒ Array

Handles a lookup request

Parameters:

  • term (String)

    term to be defined

  • config (Hash) (defaults to: {})

    configuration hash, for now supports :dictionary key. For list of valid values see Pearson::VALID_DICTIONARIES

Returns:

Raises:

  • SocketError if not connected to the internet



10
11
12
# File 'lib/dictionary_lookup.rb', line 10

def self.define(term, config={})
  Pearson.define(term, config)
end