Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/conductor.rb
Instance Method Summary collapse
Instance Method Details
#sum_it(attribute) ⇒ Object
41 42 43 |
# File 'lib/conductor.rb', line 41 def sum_it(attribute) self.map {|x| x.send(attribute) }.compact.sum end |