Ruby 1.9: What to Expect

OSCON 2008

Inject methods


 Ruby 1.9

[1,2].inject(:+)

 Ruby 1.8.6

[1,2].inject {|a,b| a+b}