module Faker::Game::Place

Constants

ADJECTIVES
MODIFIERS
PLACES
PLACES_NEEDING_MODIFIER

Public Class Methods

name() click to toggle source
# File lib/faker/game/place.rb, line 10
def name
  send(%w(name_with_modifier name_with_adjective simple_name proper_name).sample).titleize
end
name_with_adjective() click to toggle source
# File lib/faker/game/place.rb, line 18
def name_with_adjective
  "#{ADJECTIVES.sample} #{simple_name}"
end
name_with_modifier() click to toggle source
# File lib/faker/game/place.rb, line 14
def name_with_modifier
  PLACES_NEEDING_MODIFIER.sample + MODIFIERS.sample
end
proper_name() click to toggle source
# File lib/faker/game/place.rb, line 26
def proper_name
  "the #{[name_with_modifier, name_with_adjective, simple_name].sample}".titleize
end
simple_name() click to toggle source
# File lib/faker/game/place.rb, line 22
def simple_name
  PLACES.sample
end