Class: Faker::TvShows::Supernatural

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/tv_shows/supernatural.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

.characterString

Produces the name of a character from Supernatural.

Examples:

Faker::TvShows::Supernatural.character #=> "Dean Winchester"

Returns:

  • (String)

Available since:

  • next



16
17
18
# File 'lib/faker/tv_shows/supernatural.rb', line 16

def character
  fetch('supernatural.character')
end

.creatureString

Produces the name of a hunted creature.

Examples:

Faker::TvShows::Supernatural.creature #=> "Demon"

Returns:

  • (String)

Available since:

  • next



29
30
31
# File 'lib/faker/tv_shows/supernatural.rb', line 29

def creature
  fetch('supernatural.creature')
end

.weaponString

Produces the name of a weapon used by the hunters.

Examples:

Faker::TvShows::Supernatural.weapon #=> "Colt"

Returns:

  • (String)

Available since:

  • next



42
43
44
# File 'lib/faker/tv_shows/supernatural.rb', line 42

def weapon
  fetch('supernatural.weapon')
end