Class: Faker::Superhero

Inherits:
Base
  • Object
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

.descriptorObject


16
17
18
# File 'lib/faker/superhero.rb', line 16

def descriptor
  fetch('superhero.descriptor')
end

.nameObject


20
21
22
# File 'lib/faker/superhero.rb', line 20

def name
  parse('superhero.name')
end

.powerObject


4
5
6
# File 'lib/faker/superhero.rb', line 4

def power
  fetch('superhero.power')
end

.prefixObject


8
9
10
# File 'lib/faker/superhero.rb', line 8

def prefix
  fetch('superhero.prefix')
end

.suffixObject


12
13
14
# File 'lib/faker/superhero.rb', line 12

def suffix
  fetch('superhero.suffix')
end