Class: Faker::Superhero
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.descriptor ⇒ String
Produces a superhero descriptor.
-
.name ⇒ String
Produces a random superhero name.
-
.power ⇒ String
Produces a superpower.
-
.prefix ⇒ String
Produces a superhero name prefix.
-
.suffix ⇒ String
Produces a superhero name suffix.
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
.descriptor ⇒ String
Produces a superhero descriptor.
54 55 56 |
# File 'lib/faker/default/superhero.rb', line 54 def descriptor fetch('superhero.descriptor') end |
.name ⇒ String
Produces a random superhero name.
67 68 69 |
# File 'lib/faker/default/superhero.rb', line 67 def name parse('superhero.name') end |
.power ⇒ String
Produces a superpower.
15 16 17 |
# File 'lib/faker/default/superhero.rb', line 15 def power fetch('superhero.power') end |
.prefix ⇒ String
Produces a superhero name prefix.
28 29 30 |
# File 'lib/faker/default/superhero.rb', line 28 def prefix fetch('superhero.prefix') end |
.suffix ⇒ String
Produces a superhero name suffix.
41 42 43 |
# File 'lib/faker/default/superhero.rb', line 41 def suffix fetch('superhero.suffix') end |