Skip to content

Instantly share code, notes, and snippets.

@pragdave
Created April 20, 2013 17:12
Show Gist options
  • Save pragdave/5426700 to your computer and use it in GitHub Desktop.
Save pragdave/5426700 to your computer and use it in GitHub Desktop.
defrecord Person, name: "", age: 0
dave = Person.new name: "Dave", age: 27
case dave do
Person[age: age] = record -> #<< ** (RuntimeError) expected module Person to be loaded and defined
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment