Skip to content

Instantly share code, notes, and snippets.

@chris-ramon
Created January 23, 2014 22:00
Show Gist options
  • Save chris-ramon/8587672 to your computer and use it in GitHub Desktop.
Save chris-ramon/8587672 to your computer and use it in GitHub Desktop.
ruby_args.rb
def bar(x, y, *args)
puts x, y
puts "args: #{args}"
end
bar(*[1, 2, 3, 5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment