Class: Forgery::FileReader
- Inherits:
-
Object
- Object
- Forgery::FileReader
- Defined in:
- lib/forgery/file_reader.rb
Class Method Summary collapse
-
.read_dictionary(dictionary) ⇒ Object
Returns an array of strings containing each line in the dictionary.
-
.read_format(format) ⇒ Object
Returns an array of strings containing each line in the format.
Class Method Details
.read_dictionary(dictionary) ⇒ Object
Returns an array of strings containing each line in the dictionary
6 7 8 |
# File 'lib/forgery/file_reader.rb', line 6 def self.read_dictionary(dictionary) read_file(find_file(dictionary, :dictionaries)) end |
.read_format(format) ⇒ Object
Returns an array of strings containing each line in the format
11 12 13 |
# File 'lib/forgery/file_reader.rb', line 11 def self.read_format(format) read_file(find_file(format, :formats)) end |