Class: Forgery::FileReader

Inherits:
Object
  • Object
show all
Defined in:
lib/forgery/file_reader.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) read_dictionary(dictionary)

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

+ (Object) read_format(format)

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