Skip to content

Instantly share code, notes, and snippets.

@neenjaw
Created August 19, 2019 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neenjaw/cb8d3a411b9bf8c559d097d29428057d to your computer and use it in GitHub Desktop.
Save neenjaw/cb8d3a411b9bf8c559d097d29428057d to your computer and use it in GitHub Desktop.
ExMentor Situation
{:@, [],
[
{:spec, [],
[
{:"::", [],
[
{:two_fer, [],
[
{{:., [], [{:__aliases__, [], [:String]}, :t]},
[], []}
]},
{{:., [], [{:__aliases__, [], [:String]}, :t]},
[], []}
]}
]}
]}
{:defmodule, [line: 1],
[
{:__aliases__, [line: 1], [:TwoFer]},
[
do: {:__block__, [], [
{:@, [line: 2],
[
{:doc, [line: 2],
["Two-fer or 2-fer is short for two for one. One for you and one for me.\n"]}
]},
{:@, [line: 5],
[
{:spec, [line: 5],
[
{:"::", [line: 5],
[
{:two_fer, [line: 5],
[
{{:., [line: 5], [{:__aliases__, [line: 5], [:String]}, :t]},
[line: 5], []}
]},
{{:., [line: 5], [{:__aliases__, [line: 5], [:String]}, :t]},
[line: 5], []}
]}
]}
]},
{:def, [line: 6],
[
{:two_fer, [line: 6],
[{:\\, [line: 6], [{:name, [line: 6], nil}, "you"]}]}
]},
{:def, [line: 7],
[
{:when, [line: 7],
[
{:two_fer, [line: 7], [{:name, [line: 7], nil}]},
{:is_binary, [line: 7], [{:name, [line: 7], nil}]}
]},
[
do: {:<<>>, [line: 8],
[
"One for ",
{:"::", [line: 8],
[
{{:., [line: 8], [Kernel, :to_string]}, [line: 8],
[{:name, [line: 8], nil}]},
{:binary, [line: 8], nil}
]},
", one for me"
]}
]
]},
{:def, [line: 10],
[
{:two_fer, [line: 10], [{:_name, [line: 10], nil}]},
[
do: {:raise, [line: 10],
[{:__aliases__, [line: 10], [:FunctionClauseError]}]}
]
]}
]}
]
]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment