Class: Faker::Superhero
- Inherits:
-
Base
- Object
- Base
- Faker::Superhero
show all
- Defined in:
- lib/faker/default/superhero.rb
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.descriptor ⇒ Object
18
19
20
|
# File 'lib/faker/default/superhero.rb', line 18
def descriptor
fetch('superhero.descriptor')
end
|
.name ⇒ Object
22
23
24
|
# File 'lib/faker/default/superhero.rb', line 22
def name
parse('superhero.name')
end
|
.power ⇒ Object
6
7
8
|
# File 'lib/faker/default/superhero.rb', line 6
def power
fetch('superhero.power')
end
|
.prefix ⇒ Object
10
11
12
|
# File 'lib/faker/default/superhero.rb', line 10
def prefix
fetch('superhero.prefix')
end
|
.suffix ⇒ Object
14
15
16
|
# File 'lib/faker/default/superhero.rb', line 14
def suffix
fetch('superhero.suffix')
end
|