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

Functions for generating StarWars related data in English

Summary

Functions

Returns a Star Wars character name in English

Returns a Star Wars planet name in English

Returns a Star Wars quote in English

Functions

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

Returns a Star Wars character name in English

Examples

iex> Faker.StarWars.En.character()
"Greedo"
iex> Faker.StarWars.En.character()
"Jek Tono Porkins"
iex> Faker.StarWars.En.character()
"Poe Dameron"
iex> Faker.StarWars.En.character()
"R4-P17"
@spec planet() :: String.t()

Returns a Star Wars planet name in English

Examples

iex> Faker.StarWars.En.planet()
"Mon Cala"
iex> Faker.StarWars.En.planet()
"Ryloth"
iex> Faker.StarWars.En.planet()
"Endor"
iex> Faker.StarWars.En.planet()
"Shili"
@spec quote() :: String.t()

Returns a Star Wars quote in English

Examples

iex> Faker.StarWars.En.quote()
"Congratulations. You are being rescued. Please do not resist."
iex> Faker.StarWars.En.quote()
"What chance do we have? The question is 'what choice'. Run, hide, plead for mercy, scatter your forces. You give way to an enemy this evil with this much power and you condemn the galaxy to an eternity of submission. The time to fight is now!"
iex> Faker.StarWars.En.quote()
"Will someone get this big walking carpet out of my way?"
iex> Faker.StarWars.En.quote()
"To be Jedi is to face the truth, and choose. Give off light, or darkness, Padawan. Be a candle, or the night."