Class: Faker::Games::WarhammerFantasy
- Defined in:
- lib/faker/games/warhammer_fantasy.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.creature ⇒ String
Produces a creature from the Warhammer Fantasy setting.
-
.faction ⇒ String
Produces a faction from the Warhammer Fantasy setting.
-
.hero ⇒ String
Produces the name of a hero from the Warhammer Fantasy setting.
-
.location ⇒ String
Produces a location from the Warhammer Fantasy setting.
-
.quote ⇒ String
Produces a quote from the Warhammer Fantasy setting.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.creature ⇒ String
Produces a creature from the Warhammer Fantasy setting.
68 69 70 |
# File 'lib/faker/games/warhammer_fantasy.rb', line 68 def creature fetch('games.warhammer_fantasy.creatures') end |
.faction ⇒ String
Produces a faction from the Warhammer Fantasy setting.
55 56 57 |
# File 'lib/faker/games/warhammer_fantasy.rb', line 55 def faction fetch('games.warhammer_fantasy.factions') end |
.hero ⇒ String
Produces the name of a hero from the Warhammer Fantasy setting.
16 17 18 |
# File 'lib/faker/games/warhammer_fantasy.rb', line 16 def hero fetch('games.warhammer_fantasy.heros') end |
.location ⇒ String
Produces a location from the Warhammer Fantasy setting.
42 43 44 |
# File 'lib/faker/games/warhammer_fantasy.rb', line 42 def location fetch('games.warhammer_fantasy.locations') end |
.quote ⇒ String
Produces a quote from the Warhammer Fantasy setting.
29 30 31 |
# File 'lib/faker/games/warhammer_fantasy.rb', line 29 def quote fetch('games.warhammer_fantasy.quotes') end |