Skip to content

Instantly share code, notes, and snippets.

@clemens
Created August 8, 2017 13:28
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 clemens/0f68c8dff9fb4ac4d06ef6cee5240404 to your computer and use it in GitHub Desktop.
Save clemens/0f68c8dff9fb4ac4d06ef6cee5240404 to your computer and use it in GitHub Desktop.
h = { a: 1, b: 2 }
def foo(a:, b:)
[a, b]
end
foo(h) #=> [1, 2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment