Class: Faker::Quotes::Shakespeare
- Inherits:
-
Base
- Object
- Base
- Faker::Quotes::Shakespeare
show all
- Defined in:
- lib/faker/quotes/shakespeare.rb
Constant Summary
Constants inherited
from Base
Base::Letters, 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
.as_you_like_it ⇒ Object
27
28
29
|
# File 'lib/faker/quotes/shakespeare.rb', line 27
def as_you_like_it
fetch('shakespeare.as_you_like_it')
end
|
.as_you_like_it_quote ⇒ Object
11
12
13
|
# File 'lib/faker/quotes/shakespeare.rb', line 11
def as_you_like_it_quote
sample(as_you_like_it)
end
|
.hamlet ⇒ Object
23
24
25
|
# File 'lib/faker/quotes/shakespeare.rb', line 23
def hamlet
fetch('shakespeare.hamlet')
end
|
.hamlet_quote ⇒ Object
7
8
9
|
# File 'lib/faker/quotes/shakespeare.rb', line 7
def hamlet_quote
sample(hamlet)
end
|
.king_richard_iii ⇒ Object
31
32
33
|
# File 'lib/faker/quotes/shakespeare.rb', line 31
def king_richard_iii
fetch('shakespeare.king_richard_iii')
end
|
.king_richard_iii_quote ⇒ Object
15
16
17
|
# File 'lib/faker/quotes/shakespeare.rb', line 15
def king_richard_iii_quote
sample(king_richard_iii)
end
|
.romeo_and_juliet ⇒ Object
35
36
37
|
# File 'lib/faker/quotes/shakespeare.rb', line 35
def romeo_and_juliet
fetch('shakespeare.romeo_and_juliet')
end
|
.romeo_and_juliet_quote ⇒ Object
19
20
21
|
# File 'lib/faker/quotes/shakespeare.rb', line 19
def romeo_and_juliet_quote
sample(romeo_and_juliet)
end
|