Sha256: f8998e37f57225a8ccc001ccaec0f1e2bed1df1203e7d706cd5ade86c8ca45c1
Contents?: true
Size: 1.82 KB
Versions: 1
Compression:
Stored size: 1.82 KB
Contents
# frozen_string_literal: true module Faker class Games class WarhammerFantasy < Base class << self ## # Produces the name of a hero from the Warhammer Fantasy setting. # # @return [String] # # @example # Faker::Games::WarhammerFantasy.hero #=> "Sigmar Heldenhammer" # # @faker.version next def hero fetch('games.warhammer_fantasy.heros') end ## # Produces a quote from the Warhammer Fantasy setting. # # @return [String] # # @example # Faker::Games::WarhammerFantasy.quote #=> "The softest part of a castle is the belly of the man inside." # # @faker.version next def quote fetch('games.warhammer_fantasy.quotes') end ## # Produces a location from the Warhammer Fantasy setting. # # @return [String] # # @example # Faker::Games::WarhammerFantasy.location #=> "Lustria" # # @faker.version next def location fetch('games.warhammer_fantasy.locations') end ## # Produces a faction from the Warhammer Fantasy setting. # # @return [String] # # @example # Faker::Games::WarhammerFantasy.faction #=> "Bretonnia" # # @faker.version next def faction fetch('games.warhammer_fantasy.factions') end ## # Produces a creature from the Warhammer Fantasy setting. # # @return [String] # # @example # Faker::Games::WarhammerFantasy.creature #=> "Hydra" # # @faker.version next def creature fetch('games.warhammer_fantasy.creatures') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faker-2.12.0 | lib/faker/games/warhammer_fantasy.rb |