Class: ForemanNameGenerator::Generator
- Inherits:
-
Object
- Object
- ForemanNameGenerator::Generator
- Defined in:
- lib/foreman_name_generator/generator.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_DATA_DIR =
File.('../../../data', __FILE__)
- GIVEN_MALE_NAMES_FILE =
'gmnames.txt'
- GIVEN_FEMALE_NAMES_FILE =
'gfnames.txt'
- SURNAMES_FILE =
'srnames.txt'
- RECORD_LENGTH_GIVEN =
6
- RECORD_LENGTH_SURNAME =
9
Instance Method Summary collapse
-
#initialize(data_dir = DEFAULT_DATA_DIR) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(data_dir = DEFAULT_DATA_DIR) ⇒ Generator
Returns a new instance of Generator.
10 11 12 |
# File 'lib/foreman_name_generator/generator.rb', line 10 def initialize(data_dir = DEFAULT_DATA_DIR) @data_dir = data_dir end |