Class: Rambling::Trie::Readers::Reader
- Inherits:
-
Object
- Object
- Rambling::Trie::Readers::Reader
- Defined in:
- lib/rambling/trie/readers/reader.rb
Overview
Base class for all readers.
Direct Known Subclasses
Instance Method Summary collapse
-
#each_word(filepath) {|String| ... } ⇒ self
abstract
Yields each word read from given file.
Instance Method Details
#each_word(filepath) {|String| ... } ⇒ self
This method is abstract.
Subclass and override #each_word to fit to a particular file format.
Yields each word read from given file.
13 14 15 |
# File 'lib/rambling/trie/readers/reader.rb', line 13 def each_word filepath raise NotImplementedError end |