Faker v0.12.0 Faker.StarWars.En View Source
Functions for generating StarWars related data in English
Link to this section 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
Link to this section Functions
Link to this function
character()
View Source
character()
View Source
character() :: String.t()
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"
Link to this function
planet()
View Source
planet()
View Source
planet() :: String.t()
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"
Link to this function
quote()
View Source
quote()
View Source
quote() :: String.t()
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."