View Source Faker.Superhero (Faker v0.18.0)

Functions for generating Superhero data

Summary

Functions

Returns a random Superhero descriptor

Returns a random Superhero name

Returns a random Superhero power

Returns a random Superhero name prefix

Returns a random Superhero name suffix

Functions

@spec descriptor() :: String.t()

Returns a random Superhero descriptor

Examples

iex> Faker.Superhero.descriptor()
"Ronin"
iex> Faker.Superhero.descriptor()
"Azrael"
iex> Faker.Superhero.descriptor()
"Beyonder"
iex> Faker.Superhero.descriptor()
"Phantom"
@spec name() :: String.t()

Returns a random Superhero name

Examples

iex> Faker.Superhero.name()
"Red Beyonder the Hunter"
iex> Faker.Superhero.name()
"Penance Strike"
iex> Faker.Superhero.name()
"Sage"
iex> Faker.Superhero.name()
"Giant Aqua I"
@spec power() :: String.t()

Returns a random Superhero power

Examples

iex> Faker.Superhero.power()
"Death Touch"
iex> Faker.Superhero.power()
"Shapeshifting"
iex> Faker.Superhero.power()
"Gliding"
iex> Faker.Superhero.power()
"Illusions"
@spec prefix() :: String.t()

Returns a random Superhero name prefix

Examples

iex> Faker.Superhero.prefix()
"The"
iex> Faker.Superhero.prefix()
"Red"
iex> Faker.Superhero.prefix()
"The"
iex> Faker.Superhero.prefix()
"Captain"
@spec suffix() :: String.t()

Returns a random Superhero name suffix

Examples

iex> Faker.Superhero.suffix()
"Strange"
iex> Faker.Superhero.suffix()
"Claw"
iex> Faker.Superhero.suffix()
"the Hunter"
iex> Faker.Superhero.suffix()
"the Hunter"