Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/dasht/array_monkeypatching.rb

Instance Method Summary collapse

Instance Method Details

#dasht_sumObject



2
3
4
# File 'lib/dasht/array_monkeypatching.rb', line 2

def dasht_sum
  self.compact.inject(:+) || 0;
end