Class: Faker::Quotes::Shakespeare
- Defined in:
- lib/faker/quotes/shakespeare.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
- .as_you_like_it ⇒ Object
-
.as_you_like_it_quote ⇒ String
Produces a Shakespeare quote from As You Like It.
- .hamlet ⇒ Object
-
.hamlet_quote ⇒ String
Produces a Shakespeare quote from Hamlet.
- .king_richard_iii ⇒ Object
-
.king_richard_iii_quote ⇒ String
Produces a Shakespeare quote from King Richard III.
- .romeo_and_juliet ⇒ Object
-
.romeo_and_juliet_quote ⇒ String
Produces a Shakespeare quote from Romeo And Juliet.
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
63 64 65 |
# File 'lib/faker/quotes/shakespeare.rb', line 63 def as_you_like_it fetch('shakespeare.as_you_like_it') end |
.as_you_like_it_quote ⇒ String
Produces a Shakespeare quote from As You Like It.
29 30 31 |
# File 'lib/faker/quotes/shakespeare.rb', line 29 def as_you_like_it_quote sample(as_you_like_it) end |
.hamlet ⇒ Object
59 60 61 |
# File 'lib/faker/quotes/shakespeare.rb', line 59 def hamlet fetch('shakespeare.hamlet') end |
.hamlet_quote ⇒ String
Produces a Shakespeare quote from Hamlet.
16 17 18 |
# File 'lib/faker/quotes/shakespeare.rb', line 16 def hamlet_quote sample(hamlet) end |
.king_richard_iii ⇒ Object
67 68 69 |
# File 'lib/faker/quotes/shakespeare.rb', line 67 def king_richard_iii fetch('shakespeare.king_richard_iii') end |
.king_richard_iii_quote ⇒ String
Produces a Shakespeare quote from King Richard III.
42 43 44 |
# File 'lib/faker/quotes/shakespeare.rb', line 42 def king_richard_iii_quote sample(king_richard_iii) end |
.romeo_and_juliet ⇒ Object
71 72 73 |
# File 'lib/faker/quotes/shakespeare.rb', line 71 def romeo_and_juliet fetch('shakespeare.romeo_and_juliet') end |
.romeo_and_juliet_quote ⇒ String
Produces a Shakespeare quote from Romeo And Juliet.
55 56 57 |
# File 'lib/faker/quotes/shakespeare.rb', line 55 def romeo_and_juliet_quote sample(romeo_and_juliet) end |