Class: Faker::Ancient

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

.godString

Produces a god from ancient mythology.

Examples:

Faker::Ancient.god #=> "Zeus"

Returns:

  • (String)

Available since:

  • 1.7.0



15
16
17
# File 'lib/faker/default/ancient.rb', line 15

def god
  fetch('ancient.god')
end

.heroString

Produces a hero from ancient mythology.

Examples:

Faker::Ancient.hero #=> "Achilles"

Returns:

  • (String)

Available since:

  • 1.7.0



54
55
56
# File 'lib/faker/default/ancient.rb', line 54

def hero
  fetch('ancient.hero')
end

.primordialString

Produces a primordial from ancient mythology.

Examples:

Faker::Ancient.primordial #=> "Gaia"

Returns:

  • (String)

Available since:

  • 1.7.0



28
29
30
# File 'lib/faker/default/ancient.rb', line 28

def primordial
  fetch('ancient.primordial')
end

.titanString

Produces a titan from ancient mythology.

Examples:

Faker::Ancient.titan #=> "Atlas"

Returns:

  • (String)

Available since:

  • 1.7.0



41
42
43
# File 'lib/faker/default/ancient.rb', line 41

def titan
  fetch('ancient.titan')
end