Class: Faker::Superhero

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

.descriptorObject


18
19
20
# File 'lib/faker/default/superhero.rb', line 18

def descriptor
  fetch('superhero.descriptor')
end

.nameObject


22
23
24
# File 'lib/faker/default/superhero.rb', line 22

def name
  parse('superhero.name')
end

.powerObject


6
7
8
# File 'lib/faker/default/superhero.rb', line 6

def power
  fetch('superhero.power')
end

.prefixObject


10
11
12
# File 'lib/faker/default/superhero.rb', line 10

def prefix
  fetch('superhero.prefix')
end

.suffixObject


14
15
16
# File 'lib/faker/default/superhero.rb', line 14

def suffix
  fetch('superhero.suffix')
end