Class: Howdy::Dictionary::LingPl

Inherits:
Base
  • Object
show all
Defined in:
lib/howdy/dictionaries/ling_pl.rb

Instance Attribute Summary

Attributes inherited from Base

#user_query

Instance Method Summary collapse

Methods inherited from Base

description, dict_description, dict_label, dict_url, doc_encoding, #document, encoding, inherited, #initialize, label, #print, #result, url

Constructor Details

This class inherits a constructor from Howdy::Dictionary::Base

Instance Method Details

#parseObject



11
12
13
14
15
# File 'lib/howdy/dictionaries/ling_pl.rb', line 11

def parse
  document.css('div.dictdef')[0..2].each do |definiton|
    result << "\n#{definiton.content}\n\n"
  end
end