From: 7stud -- Date: 2012-09-13T13:04:49+09:00 Subject: Re: Breaking Down the Block Or even better: class Array def sum1 initial_val_for_total = 0 inject(initial_val_for_total) {|total, array_element| total += array_element} end end -- Posted via http://www.ruby-forum.com/.