Islands.Client.IslandType (Islands Client Island Type v0.1.7) View Source
Converts island codes to island types in the Game of Islands.
Inspired by the course Elixir for Programmers by Dave Thomas.
Link to this section Summary
Functions
Converts an island code to an island type.
Link to this section Functions
Specs
new(String.codepoint()) :: Islands.Island.type() | {:error, atom()}
Converts an island code to an island type.
Examples
iex> alias Islands.Client.IslandType
iex> IslandType.new("a")
:atoll