Sha256: 0950e54bbf219c8c5d02b8ba2e3cb111b339cdf868200c3a1fd8962561662c7b
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true module Rambling module Trie module Readers # Base class for all readers. class Reader # 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] def each_word filepath raise NotImplementedError end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rambling-trie-2.5.0 | lib/rambling/trie/readers/reader.rb |
rambling-trie-2.4.0 | lib/rambling/trie/readers/reader.rb |