Class: Faker::Quote

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/quotes/quote.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

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

.famous_last_wordsString

Produces a famous last words quote.

Examples:

Faker::Quote.famous_last_words #=> "My vocabulary did this to me. Your love will let you go on..."

Returns:



15
16
17
# File 'lib/faker/quotes/quote.rb', line 15

def famous_last_words
  fetch('quote.famous_last_words')
end

Produces a quote from a fortune cookie.

Examples:

Faker::Quote.fortune_cookie #=> "This cookie senses that you are superstitious; it is an inclination that is bad for your mental health."

Returns:



106
107
108
# File 'lib/faker/quotes/quote.rb', line 106

def fortune_cookie
  fetch('quote.fortune_cookie')
end

.jack_handeyString

Produces a quote from Deep Thoughts by Jack Handey.

Examples:

Faker::Quote.jack_handey # => "I hope life isn't a big joke, because I don't get it."

Returns:



28
29
30
# File 'lib/faker/quotes/quote.rb', line 28

def jack_handey
  fetch('quote.jack_handey')
end

.matzString

Produces a quote from Matz.

Examples:

Faker::Quote.matz #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better."

Returns:



41
42
43
# File 'lib/faker/quotes/quote.rb', line 41

def matz
  fetch('quote.matz')
end

.mitch_hedbergString

Produces a quote from comedian Mitch Hedberg.

Examples:

Faker::Quote.mitch_hedberg # => "I like Kit-Kats, unless I'm with four or more people."

Returns:



119
120
121
# File 'lib/faker/quotes/quote.rb', line 119

def mitch_hedberg
  fetch('quote.mitch_hedberg')
end

.most_interesting_man_in_the_worldString

Produces a quote about the most interesting man in the world.

Examples:

Faker::Quote.most_interesting_man_in_the_world #=> "He can speak Russian... in French"

Returns:



54
55
56
# File 'lib/faker/quotes/quote.rb', line 54

def most_interesting_man_in_the_world
  fetch('quote.most_interesting_man_in_the_world')
end

.robinString

Produces a Robin quote.

Examples:

Faker::Quote.robin #=> "Holy Razors Edge"

Returns:



67
68
69
# File 'lib/faker/quotes/quote.rb', line 67

def robin
  fetch('quote.robin')
end

.singular_sieglerString

Produces a singular siegler quote.

Examples:

Faker::Quote.singular_siegler #=> "Texas!"

Returns:



80
81
82
# File 'lib/faker/quotes/quote.rb', line 80

def singular_siegler
  fetch('quote.singular_siegler')
end

.yodaString

Produces a quote from Yoda.

Examples:

Faker::Quote.yoda #=> "Use your feelings, Obi-Wan, and find him you will."

Returns:



93
94
95
# File 'lib/faker/quotes/quote.rb', line 93

def yoda
  fetch('quote.yoda')
end