Skip to content

Instantly share code, notes, and snippets.

@cohitre
Created May 12, 2009 18:45
Show Gist options
  • Save cohitre/110653 to your computer and use it in GitHub Desktop.
Save cohitre/110653 to your computer and use it in GitHub Desktop.
three = lambda {|a,b,c| puts "#{a} #{b} #{c}"}
three.call(1,2,3)
three.call(*[3,2,1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment