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, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, 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:

  • (String)

Available since:

  • 1.9.0


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

def famous_last_words
  fetch('quote.famous_last_words')
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:

  • (String)

Available since:

  • 1.9.0


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

def matz
  fetch('quote.matz')
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:

  • (String)

Available since:

  • 1.9.0


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

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:

  • (String)

Available since:

  • 1.9.0


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

def robin
  fetch('quote.robin')
end

.singular_sieglerString

Produces a singular siegler quote.

Examples:

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

Returns:

  • (String)

Available since:

  • 1.9.0


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

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:

  • (String)

Available since:

  • 1.9.0


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

def yoda
  fetch('quote.yoda')
end