Skip to content

Instantly share code, notes, and snippets.

@aharpole
Created March 9, 2019 00:06
Show Gist options
  • Save aharpole/f76cc93c2c6b1efefed101510f51d9d6 to your computer and use it in GitHub Desktop.
Save aharpole/f76cc93c2c6b1efefed101510f51d9d6 to your computer and use it in GitHub Desktop.
new init for elixir blog post
def init(%{increment_by: increment_by}) do
{:ok, %__MODULE__{value: 1, increment_by: increment_by}}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment