Class: Faker::Games::Touhou

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/touhou.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 character from the Touhou games.

Examples:

Faker::Games::Touhou.character #=> "Sanae Kochiya"

Returns:

  • (String)

Available since:

  • next


30
31
32
# File 'lib/faker/games/touhou.rb', line 30

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

.gameString

Produces the name of a Touhou game.

Examples:

Faker::Games::Touhou.game #=> "Mountain of Faith"

Returns:

  • (String)

Available since:

  • next


17
18
19
# File 'lib/faker/games/touhou.rb', line 17

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

.locationString

Produces the name of a location from the Touhou games.

Examples:

Faker::Games::Touhou.location #=> "Moriya Shrine"

Returns:

  • (String)

Available since:

  • next


43
44
45
# File 'lib/faker/games/touhou.rb', line 43

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

.songString

Produces the name of a song from the Touhou games.

Examples:

Faker::Games::Touhou.song #=> "Faith Is for the Transient People"

Returns:

  • (String)

Available since:

  • next


69
70
71
# File 'lib/faker/games/touhou.rb', line 69

def song
  fetch('games.touhou.songs')
end

.spell_cardString

Produces the name of a spell card from the Touhou games.

Examples:

Faker::Games::Touhou.spell_card #=> 'Esoterica "Gray Thaumaturgy"'

Returns:

  • (String)

Available since:

  • next


56
57
58
# File 'lib/faker/games/touhou.rb', line 56

def spell_card
  fetch('games.touhou.spell_cards')
end