Repository navigation
Expand file tree
/
Copy pathtouhou.rb
More file actions
75 lines (70 loc) · 1.71 KB
/
Copy pathtouhou.rb
File metadata and controls
75 lines (70 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# frozen_string_literal: true
module Faker
class Games
class Touhou < Base
flexible :touhou
class << self
##
# Produces the name of a Touhou game.
#
# @return [String]
#
# @example
# Faker::Games::Touhou.game #=> "Mountain of Faith"
#
# @faker.version next
def game
fetch('games.touhou.games')
end
##
# Produces the name of a character from the Touhou games.
#
# @return [String]
#
# @example
# Faker::Games::Touhou.character #=> "Sanae Kochiya"
#
# @faker.version next
def character
fetch('games.touhou.characters')
end
##
# Produces the name of a location from the Touhou games.
#
# @return [String]
#
# @example
# Faker::Games::Touhou.location #=> "Moriya Shrine"
#
# @faker.version next
def location
fetch('games.touhou.locations')
end
##
# Produces the name of a spell card from the Touhou games.
#
# @return [String]
#
# @example
# Faker::Games::Touhou.spell_card #=> 'Esoterica "Gray Thaumaturgy"'
#
# @faker.version next
def spell_card
fetch('games.touhou.spell_cards')
end
##
# Produces the name of a song from the Touhou games.
#
# @return [String]
#
# @example
# Faker::Games::Touhou.song #=> "Faith Is for the Transient People"
#
# @faker.version next
def song
fetch('games.touhou.songs')
end
end
end
end
end