Class: ForemanNameGenerator::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman_name_generator/generator.rb

Direct Known Subclasses

MacGenerator, RandomGenerator

Constant Summary collapse

DEFAULT_DATA_DIR =
File.expand_path('../../../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

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