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 ⇒ String
Generates quote from ‘As you like it!’.
-
.as_you_like_it_quote ⇒ String
Produces a Shakespeare quote from As You Like It.
-
.hamlet ⇒ String
Generates quote from Hamlet.
-
.hamlet_quote ⇒ String
Produces a Shakespeare quote from Hamlet.
-
.king_richard_iii ⇒ String
Returns quote from ‘King Rechard III’.
-
.king_richard_iii_quote ⇒ String
Produces a Shakespeare quote from King Richard III.
-
.romeo_and_juliet ⇒ String
Quote from ‘Romeo and Juliet’.
-
.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, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.as_you_like_it ⇒ String
Generates quote from ‘As you like it!’
81 82 83 |
# File 'lib/faker/quotes/shakespeare.rb', line 81 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 ⇒ String
Generates quote from Hamlet
68 69 70 |
# File 'lib/faker/quotes/shakespeare.rb', line 68 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 ⇒ String
Returns quote from ‘King Rechard III’
92 93 94 |
# File 'lib/faker/quotes/shakespeare.rb', line 92 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 ⇒ String
Quote from ‘Romeo and Juliet’
105 106 107 |
# File 'lib/faker/quotes/shakespeare.rb', line 105 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 |