class Faker::Quotes::Shakespeare

Public Class Methods

as_you_like_it() click to toggle source

Generates quote from ‘As you like it!’

@return [String]

@example

Faker::Quotes::Shakespeare.as_you_like_it   #=> "How bitter a thing it is to look into happiness through another man's eyes!"

@faker.version 1.9.2

# 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() click to toggle source

Produces a Shakespeare quote from As You Like It.

@return [String]

@example

Faker::Quotes::Shakespeare.as_you_like_it_quote # => "Can one desire too much of a good thing?."

@faker.version 1.9.2

# File lib/faker/quotes/shakespeare.rb, line 29
def as_you_like_it_quote
  sample(as_you_like_it)
end
hamlet() click to toggle source

Generates quote from Hamlet

@return [String]

@example

Faker::Quotes::Shakespeare.hamlet   #=> "A little more than kin, and less than kind."

@faker.version 1.9.2

# File lib/faker/quotes/shakespeare.rb, line 68
def hamlet
  fetch('shakespeare.hamlet')
end
hamlet_quote() click to toggle source

Produces a Shakespeare quote from Hamlet.

@return [String]

@example

Faker::Quotes::Shakespeare.hamlet_quote # => "To be, or not to be: that is the question."

@faker.version 1.9.2

# File lib/faker/quotes/shakespeare.rb, line 16
def hamlet_quote
  sample(hamlet)
end
king_richard_iii() click to toggle source

Returns quote from ‘King Rechard III’

@return [String]

@example

Faker::Quotes::Shakespeare  #=> "The king's name is a tower of strength."
# File lib/faker/quotes/shakespeare.rb, line 92
def king_richard_iii
  fetch('shakespeare.king_richard_iii')
end
king_richard_iii_quote() click to toggle source

Produces a Shakespeare quote from King Richard III.

@return [String]

@example

Faker::Quotes::Shakespeare.king_richard_iii_quote # => "Now is the winter of our discontent."

@faker.version 1.9.2

# File lib/faker/quotes/shakespeare.rb, line 42
def king_richard_iii_quote
  sample(king_richard_iii)
end
romeo_and_juliet() click to toggle source

Quote from ‘Romeo and Juliet’

@return [String]

@example

Faker::Quotes::Shakespeare.romeo_and_juliet  #=> "Wisely and slow; they stumble that run fast."

@faker.version 1.9.2

# File lib/faker/quotes/shakespeare.rb, line 105
def romeo_and_juliet
  fetch('shakespeare.romeo_and_juliet')
end
romeo_and_juliet_quote() click to toggle source

Produces a Shakespeare quote from Romeo And Juliet.

@return [String]

@example

Faker::Quotes::Shakespeare.romeo_and_juliet_quote # => "O Romeo, Romeo! wherefore art thou Romeo?."

@faker.version 1.9.2

# File lib/faker/quotes/shakespeare.rb, line 55
def romeo_and_juliet_quote
  sample(romeo_and_juliet)
end