View Source Faker.StarWars (Faker v0.18.0)
Functions for generating StarWars related data
Summary
Functions
Returns a Star Wars character name
Returns a Star Wars planet name
Returns a Star Wars quote
Functions
@spec character() :: String.t()
Returns a Star Wars character name
Examples
iex> Faker.StarWars.character()
"Greedo"
iex> Faker.StarWars.character()
"Jek Tono Porkins"
iex> Faker.StarWars.character()
"Poe Dameron"
iex> Faker.StarWars.character()
"R4-P17"
@spec planet() :: String.t()
Returns a Star Wars planet name
Examples
iex> Faker.StarWars.planet()
"Mon Cala"
iex> Faker.StarWars.planet()
"Ryloth"
iex> Faker.StarWars.planet()
"Endor"
iex> Faker.StarWars.planet()
"Shili"
@spec quote() :: String.t()
Returns a Star Wars quote
Examples
iex> Faker.StarWars.quote()
"Congratulations. You are being rescued. Please do not resist."
iex> Faker.StarWars.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.quote()
"Will someone get this big walking carpet out of my way?"
iex> Faker.StarWars.quote()
"To be Jedi is to face the truth, and choose. Give off light, or darkness, Padawan. Be a candle, or the night."