Skip to content

Instantly share code, notes, and snippets.

@JacobNinja
Created May 2, 2014 16: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 JacobNinja/a38d0f4b02759c910dc3 to your computer and use it in GitHub Desktop.
Save JacobNinja/a38d0f4b02759c910dc3 to your computer and use it in GitHub Desktop.
Mandatory keyword args
2.1.1 :001 > def test(foo:)
2.1.1 :002?> puts foo
2.1.1 :003?> end
=> :test
2.1.1 :004 > test()
ArgumentError: missing keyword: foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment