Method: Enumerable#sum

Defined in:
lib/charlie/1.9fixes.rb,
lib/charlie/etc/monkey.rb

#sumObject

faster than both r=0; each; r and {|a,b|a+b}



38
39
40
# File 'lib/charlie/1.9fixes.rb', line 38

def sum # faster than both r=0; each; r and {|a,b|a+b}
  inject(0,:+)
end