Module: Degica::DoorNameGenerator

Defined in:
lib/degica/generators/door_name_generator.rb

Constant Summary collapse

COLORS =
[
  'blue',
  'red',
  'green',
  'black',
  'white',
  'brown',
]
MATERIAL =
[
  'wooden',
  'metal',
  'granite',
  'bronze',
  'copper',
  'gold',
  'steel'
]
ADJECTIVES =
[
  'battered',
  'shiny',
  'round',
  'old',
  'cracked',
  'shattered',
  'rusty',
  'worn out',
  'striped',
  'wide',
  'short',
  'sturdy',
  'tiny'
]

Class Method Summary collapse

Class Method Details

.sampleObject



39
40
41
42
# File 'lib/degica/generators/door_name_generator.rb', line 39

def sample
  desc = sample_with_order([ADJECTIVES.sample, MATERIAL.sample, COLORS.sample]).join(' ')
  "A #{desc} door."
end