Class: Faker::Movies::BackToTheFuture

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/movies/back_to_the_future.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, translate, unique, with_locale

Class Method Details

.characterString

Produces a character from Back to the Future.

Examples:

Faker::Movies::BackToTheFuture.character #=> "Marty McFly"

Returns:

  • (String)

Available since:

  • 1.8.5



16
17
18
# File 'lib/faker/movies/back_to_the_future.rb', line 16

def character
  fetch('back_to_the_future.characters')
end

.dateString

Produces a date from Back to the Future.

Examples:

Faker::Movies::BackToTheFuture.date #=> "November 5, 1955"

Returns:

  • (String)

Available since:

  • 1.8.5



29
30
31
# File 'lib/faker/movies/back_to_the_future.rb', line 29

def date
  fetch('back_to_the_future.dates')
end

.quoteString

Produces a quote from Back to the Future.

Examples:

Faker::Movies::BackToTheFuture.quote
  #=> "Roads? Where we're going, we don't need roads."

Returns:

  • (String)

Available since:

  • 1.8.5



43
44
45
# File 'lib/faker/movies/back_to_the_future.rb', line 43

def quote
  fetch('back_to_the_future.quotes')
end