Repository navigation
Expand file tree
/
Copy pathbuffy.rb
More file actions
89 lines (82 loc) · 1.99 KB
/
Copy pathbuffy.rb
File metadata and controls
89 lines (82 loc) · 1.99 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# frozen_string_literal: true
module Faker
class TvShows
class Buffy < Base
flexible :buffy
class << self
##
# Produces a character from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.character #=> "Buffy Summers"
#
# @faker.version 1.9.2
def character
fetch('buffy.characters')
end
##
# Produces a quote from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.quote #=> "If the apocalypse comes, beep me."
#
# @faker.version 1.9.2
def quote
fetch('buffy.quotes')
end
##
# Produces a actor from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.actor #=> "John Ritter"
#
# @faker.version next
def actor
fetch('buffy.actors')
end
##
# Produces a actor from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.celebrity #=> "John Ritter"
#
# @deprecated Use the `actor` method instead.
#
# @faker.version 1.9.2
alias celebrity actor
##
# Produces a big bad from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.big_bad #=> "Glory"
#
# @faker.version 1.9.2
def big_bad
fetch('buffy.big_bads')
end
##
# Produces an episode from Buffy the Vampire Slayer.
#
# @return [String]
#
# @example
# Faker::TvShows::Buffy.episode #=> "Once More, with Feeling"
#
# @faker.version 1.9.2
def episode
fetch('buffy.episodes')
end
end
end
end
end