Faker v0.12.0 Faker.Lorem.Shakespeare View Source
Random quotes from William Shakespeare's plays, sonnets and poems.
Link to this section Summary
Functions
Return random quote from "As You Like It" comedy.
Return random quote from "The Tragedy of Hamlet, Prince of Denmark" tragedy.
Return random quote from "Richard III" play.
Return random quote from "Romeo and Juliet" tragedy.
Link to this section Functions
Link to this function
as_you_like_it()
View Source
as_you_like_it()
View Source
as_you_like_it() :: String.t()
as_you_like_it() :: String.t()
Return random quote from "As You Like It" comedy.
Examples
iex> Faker.Lorem.Shakespeare.as_you_like_it()
"For ever and a day."
iex> Faker.Lorem.Shakespeare.as_you_like_it()
"Can one desire too much of a good thing?."
iex> Faker.Lorem.Shakespeare.as_you_like_it()
"How bitter a thing it is to look into happiness through another man's eyes!"
iex> Faker.Lorem.Shakespeare.as_you_like_it()
"All the world's a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts."
Link to this function
hamlet()
View Source
hamlet()
View Source
hamlet() :: String.t()
hamlet() :: String.t()
Return random quote from "The Tragedy of Hamlet, Prince of Denmark" tragedy.
Examples
iex> Faker.Lorem.Shakespeare.hamlet()
"Brevity is the soul of wit."
iex> Faker.Lorem.Shakespeare.hamlet()
"And it must follow, as the night the day, thou canst not then be false to any man."
iex> Faker.Lorem.Shakespeare.hamlet()
"Do you think I am easier to be played on than a pipe?"
iex> Faker.Lorem.Shakespeare.hamlet()
"Rich gifts wax poor when givers prove unkind."
Link to this function
king_richard_iii()
View Source
king_richard_iii()
View Source
king_richard_iii() :: String.t()
king_richard_iii() :: String.t()
Return random quote from "Richard III" play.
Examples
iex> Faker.Lorem.Shakespeare.king_richard_iii()
"The king's name is a tower of strength."
iex> Faker.Lorem.Shakespeare.king_richard_iii()
"A horse! a horse! my kingdom for a horse!"
iex> Faker.Lorem.Shakespeare.king_richard_iii()
"So wise so young, they say, do never live long."
iex> Faker.Lorem.Shakespeare.king_richard_iii()
"Now is the winter of our discontent."
Link to this function
romeo_and_juliet()
View Source
romeo_and_juliet()
View Source
romeo_and_juliet() :: String.t()
romeo_and_juliet() :: String.t()
Return random quote from "Romeo and Juliet" tragedy.
Examples
iex> Faker.Lorem.Shakespeare.romeo_and_juliet()
"What's in a name? That which we call a rose by any other name would smell as sweet."
iex> Faker.Lorem.Shakespeare.romeo_and_juliet()
"For you and I are past our dancing days."
iex> Faker.Lorem.Shakespeare.romeo_and_juliet()
"For you and I are past our dancing days."
iex> Faker.Lorem.Shakespeare.romeo_and_juliet()
"For you and I are past our dancing days."