Class: Faker::Games::WarhammerFantasy

Inherits:
Base
  • Object
show all
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

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

.creatureString

Produces a creature from the Warhammer Fantasy setting.

Examples:

Faker::Games::WarhammerFantasy.creature #=> "Hydra"

Returns:



68
69
70
# File 'lib/faker/games/warhammer_fantasy.rb', line 68

def creature
  fetch('games.warhammer_fantasy.creatures')
end

.factionString

Produces a faction from the Warhammer Fantasy setting.

Examples:

Faker::Games::WarhammerFantasy.faction #=> "Bretonnia"

Returns:



55
56
57
# File 'lib/faker/games/warhammer_fantasy.rb', line 55

def faction
  fetch('games.warhammer_fantasy.factions')
end

.heroString

Produces the name of a hero from the Warhammer Fantasy setting.

Examples:

Faker::Games::WarhammerFantasy.hero #=> "Sigmar Heldenhammer"

Returns:



16
17
18
# File 'lib/faker/games/warhammer_fantasy.rb', line 16

def hero
  fetch('games.warhammer_fantasy.heros')
end

.locationString

Produces a location from the Warhammer Fantasy setting.

Examples:

Faker::Games::WarhammerFantasy.location #=> "Lustria"

Returns:



42
43
44
# File 'lib/faker/games/warhammer_fantasy.rb', line 42

def location
  fetch('games.warhammer_fantasy.locations')
end

.quoteString

Produces a quote from the Warhammer Fantasy setting.

Examples:

Faker::Games::WarhammerFantasy.quote #=> "The softest part of a castle is the belly of the man inside."

Returns:



29
30
31
# File 'lib/faker/games/warhammer_fantasy.rb', line 29

def quote
  fetch('games.warhammer_fantasy.quotes')
end