Class: Faker::Shakespeare
- Inherits:
-
Base
- Object
- Base
- Faker::Shakespeare
show all
- Defined in:
- lib/faker/shakespeare.rb
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.as_you_like_it ⇒ Object
24
25
26
|
# File 'lib/faker/shakespeare.rb', line 24
def as_you_like_it
fetch('shakespeare.as_you_like_it')
end
|
.as_you_like_it_quote ⇒ Object
8
9
10
|
# File 'lib/faker/shakespeare.rb', line 8
def as_you_like_it_quote
sample(as_you_like_it)
end
|
.hamlet ⇒ Object
20
21
22
|
# File 'lib/faker/shakespeare.rb', line 20
def hamlet
fetch('shakespeare.hamlet')
end
|
.hamlet_quote ⇒ Object
4
5
6
|
# File 'lib/faker/shakespeare.rb', line 4
def hamlet_quote
sample(hamlet)
end
|
.king_richard_iii ⇒ Object
28
29
30
|
# File 'lib/faker/shakespeare.rb', line 28
def king_richard_iii
fetch('shakespeare.king_richard_iii')
end
|
.king_richard_iii_quote ⇒ Object
12
13
14
|
# File 'lib/faker/shakespeare.rb', line 12
def king_richard_iii_quote
sample(king_richard_iii)
end
|
.romeo_and_juliet ⇒ Object
32
33
34
|
# File 'lib/faker/shakespeare.rb', line 32
def romeo_and_juliet
fetch('shakespeare.romeo_and_juliet')
end
|
.romeo_and_juliet_quote ⇒ Object
16
17
18
|
# File 'lib/faker/shakespeare.rb', line 16
def romeo_and_juliet_quote
sample(romeo_and_juliet)
end
|