class Rambling::Trie::Readers::Reader

Base class for all readers.

Public Instance Methods

each_word(filepath) click to toggle source

Yields each word read from given file. @abstract Subclass and override {#each_word} to fit to a particular

file format.

@param [String] filepath the full path of the file to load the words

from.

@yield [String] Each line read from the file. @return [self]

# File lib/rambling/trie/readers/reader.rb, line 15
def each_word filepath
  raise NotImplementedError
end