J
Joshua Muheim
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
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