Class: Faker::Games::SonicTheHedgehog

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/sonic_the_hedgehog.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

.characterString

Produces the name of a character from Sonic the Hedgehog.

Examples:

Faker::Games::SonicTheHedgehog.character #=> "Sonic the Hedgehog"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def character
  fetch('games.sonic_the_hedgehog.character')
end

.gameString

Produces the name of a game from the Sonic the Hedgehog series.

Examples:

Faker::Games::SonicTheHedgehog.game #=> "Waku Waku Sonic Patrol Car"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def game
  fetch('games.sonic_the_hedgehog.game')
end

.zoneString

Produces the name of a zone from Sonic the Hedgehog.

Examples:

Faker::Games::SonicTheHedgehog.zone #=> "Green Hill Zone"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def zone
  fetch('games.sonic_the_hedgehog.zone')
end