From: Joshua Muheim Date: 2008-10-03T21:17:33+09:00 Subject: Iterate over array and add numbers of each object Hi all number = 0; objects.each do |o| number += o.some_number end return number I guess there's a much more beautiful way for this, or isn't? Something like collect or so... Thanks :-) Josh -- Posted via http://www.ruby-forum.com/.