Revision: 2367
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 4, 2007 15:21 by gnatware
Initial Code
# use Array#inject to calculate totals def number_of_incomings assets.inject(0) {|total, asset| total += asset.incomings.size } end
Initial URL
http://www.therailsway.com/2007/1/10/assetsgraphed-part-2
Initial Description
Initial Title
Lots of Array methods
Initial Tags
array
Initial Language
Ruby