Class: JDict::DictionaryIndexer
- Inherits:
-
Object
- Object
- JDict::DictionaryIndexer
- Defined in:
- lib/ruby-jdict/indexer/dictionary_indexer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parts_of_speech ⇒ Object
readonly
Returns the value of attribute parts_of_speech.
Instance Method Summary collapse
- #index(db_transaction, &block) ⇒ Object
-
#initialize(path) ⇒ DictionaryIndexer
constructor
A new instance of DictionaryIndexer.
- #parse_parts_of_speech ⇒ Object
Constructor Details
#initialize(path) ⇒ DictionaryIndexer
Returns a new instance of DictionaryIndexer.
7 8 9 10 11 12 |
# File 'lib/ruby-jdict/indexer/dictionary_indexer.rb', line 7 def initialize(path) raise "No dictionary path was provided" if path.nil? raise "Dictionary not found at path #{@path}" unless File.exists?(path) @path = path end |
Instance Attribute Details
#parts_of_speech ⇒ Object (readonly)
Returns the value of attribute parts_of_speech.
5 6 7 |
# File 'lib/ruby-jdict/indexer/dictionary_indexer.rb', line 5 def parts_of_speech @parts_of_speech end |
Instance Method Details
#index(db_transaction, &block) ⇒ Object
14 15 |
# File 'lib/ruby-jdict/indexer/dictionary_indexer.rb', line 14 def index(db_transaction, &block) end |
#parse_parts_of_speech ⇒ Object
17 18 |
# File 'lib/ruby-jdict/indexer/dictionary_indexer.rb', line 17 def parse_parts_of_speech end |