Class: Faker::DcComics
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.hero ⇒ String
Produces a hero name from DC Comics.
-
.heroine ⇒ String
Produces a heroine name from DC Comics.
-
.name ⇒ String
Produces a character name from DC Comics.
-
.title ⇒ String
Produces a comic book title from DC Comics.
-
.villain ⇒ String
Produces a villain name from DC Comics.
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
.hero ⇒ String
Produces a hero name from DC Comics
14 15 16 |
# File 'lib/faker/default/dc_comics.rb', line 14 def self.hero fetch('dc_comics.hero') end |
.heroine ⇒ String
Produces a heroine name from DC Comics
27 28 29 |
# File 'lib/faker/default/dc_comics.rb', line 27 def self.heroine fetch('dc_comics.heroine') end |
.name ⇒ String
Produces a character name from DC Comics
53 54 55 |
# File 'lib/faker/default/dc_comics.rb', line 53 def self.name fetch('dc_comics.name') end |
.title ⇒ String
Produces a comic book title from DC Comics
66 67 68 |
# File 'lib/faker/default/dc_comics.rb', line 66 def self.title fetch('dc_comics.title') end |
.villain ⇒ String
Produces a villain name from DC Comics
40 41 42 |
# File 'lib/faker/default/dc_comics.rb', line 40 def self.villain fetch('dc_comics.villain') end |