Created
June 10, 2015 14:25
-
-
Save darui00kara/1e1f2be9e635ff9da8b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule ElixirUseSheriff do | |
| @type colors() :: :blue | :red | :green | :yellow | |
| def test(value) do | |
| :sheriff.check(value, {:blue, :red, :green, :yellow}) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment