forked from faker-ruby/faker
/
back_to_the_future.rb
49 lines (46 loc) · 1.12 KB
/
back_to_the_future.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
# frozen_string_literal: true
module Faker
class Movies
class BackToTheFuture < Base
class << self
##
# Produces a character from Back to the Future.
#
# @return [String]
#
# @example
# Faker::Movies::BackToTheFuture.character #=> "Marty McFly"
#
# @faker.version 1.8.5
def character
fetch('back_to_the_future.characters')
end
##
# Produces a date from Back to the Future.
#
# @return [String]
#
# @example
# Faker::Movies::BackToTheFuture.date #=> "November 5, 1955"
#
# @faker.version 1.8.5
def date
fetch('back_to_the_future.dates')
end
##
# Produces a quote from Back to the Future.
#
# @return [String]
#
# @example
# Faker::Movies::BackToTheFuture.quote
# #=> "Roads? Where we're going, we don't need roads."
#
# @faker.version 1.8.5
def quote
fetch('back_to_the_future.quotes')
end
end
end
end
end