Sha256: 71c56ee63e5ef12ef139155dc250bbc6f8c74e5fa296c771727461e7330c4082

Contents?: true

Size: 1.38 KB

Versions: 36

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

module Faker
  class Games
    class Zelda < Base
      flexible :zelda
      class << self
        ##
        # Produces the name of a Legend of Zelda game.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Zelda.game #=> "Breath of the Wild"
        #
        # @faker.version 1.7.3
        def game
          fetch('games.zelda.games')
        end

        ##
        # Produces the name of a character from the Legend of Zelda games.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Zelda.character #=> "Link"
        #
        # @faker.version 1.7.3
        def character
          fetch('games.zelda.characters')
        end

        ##
        # Produces the name of a character from the Legend of Zelda games.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Zelda.location #=> "Hyrule Castle"
        #
        # @faker.version 1.7.3
        def location
          fetch('games.zelda.locations')
        end

        ##
        # Produces the name of an item from the Legend of Zelda games.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Zelda.item #=> "Boomerang"
        #
        # @faker.version 1.7.3
        def item
          fetch('games.zelda.items')
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
faker-3.5.1 lib/faker/games/zelda.rb
faker-3.4.2 lib/faker/games/zelda.rb
faker-3.4.1 lib/faker/games/zelda.rb
faker-3.3.1 lib/faker/games/zelda.rb
faker-3.3.0 lib/faker/games/zelda.rb
faker-3.2.3 lib/faker/games/zelda.rb
faker-3.2.2 lib/faker/games/zelda.rb
faker-3.2.1 lib/faker/games/zelda.rb
faker-3.2.0 lib/faker/games/zelda.rb
faker-3.1.1 lib/faker/games/zelda.rb
faker-3.1.0 lib/faker/games/zelda.rb
faker-3.0.0 lib/faker/games/zelda.rb
faker-2.23.0 lib/faker/games/zelda.rb
faker-2.22.0 lib/faker/games/zelda.rb
faker-2.21.0 lib/faker/games/zelda.rb
faker-2.20.0 lib/faker/games/zelda.rb
faker-2.19.0 lib/faker/games/zelda.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/lib/faker/games/zelda.rb
faker-2.18.0 lib/faker/games/zelda.rb
faker-2.17.0 lib/faker/games/zelda.rb