Skip to content

Instantly share code, notes, and snippets.

@brixen
Created December 24, 2014 16:25
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 brixen/30604b1c58090bc59c6c to your computer and use it in GitHub Desktop.
Save brixen/30604b1c58090bc59c6c to your computer and use it in GitHub Desktop.
clm-bshirai:rubinius bshirai$ irb
irb(main):001:0> def m(*a, **kw) yield(*a, **kw) end
=> :m
irb(main):002:0> m(1,2,3,4,5,a:1,b:2) { |a, b=1, c, **kw| [a, b, c, kw] }
=> [1, 2, 3, {:a=>1, :b=>2}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment