Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/valuation/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#sumObject



2
3
4
# File 'lib/valuation/core_ext.rb', line 2

def sum
  inject(0){|s,v|s+v}
end