View Source Faker.Superhero.En (Faker v0.18.0)

Functions for Superhero data in English

Summary

Functions

Returns a random descriptor

Returns a Superhero name

Returns a random Superhero power

Returns a random prefix

Returns a random suffix

Functions

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

Returns a random descriptor

Examples

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

Returns a Superhero name

Examples

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

Returns a random Superhero power

Examples

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

Returns a random prefix

Examples

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

Returns a random suffix

Examples

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