Skip to content

Instantly share code, notes, and snippets.

@txus
Created September 24, 2013 13:43
Show Gist options
  • Save txus/6684912 to your computer and use it in GitHub Desktop.
Save txus/6684912 to your computer and use it in GitHub Desktop.
Enforcing arity with keyword arguments? well no because computer
def foo(a: 1,
b: raise(ArgumentError, "need b"),
c: 42)
# lol
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment