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