Enumerable#inject
Enumerable#sum [block]

Code adapted from Pickaxe book, p.102. See source file for examples.

version

Enumerable tools 1.6