Class: Faker::Games::Heroes
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.artifact ⇒ String
Produces the name of an artifact from Heroes 3.
-
.klass ⇒ String
Produces the name of a class from Heroes 3.
-
.name ⇒ String
Produces the name of a hero from Heroes 3.
-
.specialty ⇒ String
Produces the name of a specialty from Heroes 3.
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
.artifact ⇒ String
Produces the name of an artifact from Heroes 3.
55 56 57 |
# File 'lib/faker/games/heroes.rb', line 55 def artifact fetch('heroes.artifacts') end |
.klass ⇒ String
Produces the name of a class from Heroes 3.
42 43 44 |
# File 'lib/faker/games/heroes.rb', line 42 def klass fetch('heroes.klasses') end |
.name ⇒ String
Produces the name of a hero from Heroes 3.
16 17 18 |
# File 'lib/faker/games/heroes.rb', line 16 def name fetch('heroes.names') end |
.specialty ⇒ String
Produces the name of a specialty from Heroes 3.
29 30 31 |
# File 'lib/faker/games/heroes.rb', line 29 def specialty fetch('heroes.specialties') end |