Class: Faker::Games::StreetFighter

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/street_fighter.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, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.characterString

Produces the name of a playable character from Street Fighter.

Examples:

Faker::Games::StreetFighter.character #=> "Ryu"

Returns:

  • (String)

Available since:

  • next


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

def character
  fetch('games.street_fighter.characters')
end

.moveString

Produces the name of a move from Street Fighter.

Examples:

Faker::Games::StreetFighter.move #=> "Shoryuken"

Returns:

  • (String)

Available since:

  • next


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

def move
  fetch('games.street_fighter.moves')
end

.quoteString

Produces a quote from Street Fighter.

Examples:

Faker::Games::StreetFighter.quote #=> "Go home and be a family man."

Returns:

  • (String)

Available since:

  • next


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

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

.stageString

Produces the name of a stage from Street Fighter.

Examples:

Faker::Games::StreetFighter.stage #=> "Volcanic Rim"

Returns:

  • (String)

Available since:

  • next


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

def stage
  fetch('games.street_fighter.stages')
end