Sha256: 5c715eb7d620744549427eed7e773fddbabe1288354aeb6a9140fe961d4a282f

Contents?: true

Size: 72 Bytes

Versions: 10

Compression:

Stored size: 72 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dasht-0.1.9 lib/dasht/array_monkeypatching.rb
dasht-0.1.8 lib/dasht/array_monkeypatching.rb
dasht-0.1.7 lib/dasht/array_monkeypatching.rb
dasht-0.1.6 lib/dasht/array_monkeypatching.rb
dasht-0.1.5 lib/dasht/array_monkeypatching.rb
dasht-0.1.4 lib/dasht/array_monkeypatching.rb
dasht-0.1.3 lib/dasht/array_monkeypatching.rb
dasht-0.1.2 lib/dasht/array_monkeypatching.rb
dasht-0.1.1 lib/dasht/array_monkeypatching.rb
dasht-0.1.0 lib/dasht/array_monkeypatching.rb