Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/highway/array.rb
Instance Method Summary collapse
Instance Method Details
#sum(start = 0) ⇒ Object
2 3 4 |
# File 'lib/highway/array.rb', line 2 def sum(start = 0) inject(start, &:+) end |