/
dr_who.rb
115 lines (106 loc) · 2.53 KB
/
dr_who.rb
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# frozen_string_literal: true
module Faker
class TvShows
class DrWho < Base
flexible :dr_who
class << self
##
# Produces a character from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.character #=> "Captain Jack Harkness"
#
# @faker.version 1.8.0
def character
fetch('dr_who.character')
end
##
# Produces an iteration of The Doctor from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.the_doctor #=> "Ninth Doctor"
#
# @faker.version 1.8.0
def the_doctor
fetch('dr_who.the_doctors')
end
##
# Produces an actor from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.actor #=> "Matt Smith"
#
# @faker.version 1.9.0
def actor
fetch('dr_who.actors')
end
##
# Produces a catch phrase from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.catch_phrase #=> "Fantastic!"
#
# @faker.version 1.8.0
def catch_phrase
fetch('dr_who.catch_phrases')
end
##
# Produces a quote from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.quote #=> "Lots of planets have a north!"
#
# @faker.version 1.8.0
def quote
fetch('dr_who.quotes')
end
##
# Produces a villain from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.villain #=> "The Master"
#
# @faker.version next
def villain
fetch('dr_who.villains')
end
##
# Produces a villain from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.villian #=> "The Master"
#
# @deprecated Use the correctly-spelled `villain` method instead.
#
# @faker.version 1.8.0
alias villian villain
##
# Produces a species from Doctor Who.
#
# @return [String]
#
# @example
# Faker::TvShows::DrWho.specie #=> "Dalek"
#
# @faker.version 1.8.0
def specie
fetch('dr_who.species')
end
end
end
end
end