Sha256: 2a012066c28f398c531f4f849d34cd1521ad2fbcd86d6d8611619c7db563c318

Contents?: true

Size: 102 Bytes

Versions: 15

Compression:

Stored size: 102 Bytes

Contents

class Array
  def sum
    total = 0
    each do |val|
      total += val
    end

    total
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
volt-0.8.27.beta2 lib/volt/extra_core/array.rb
volt-0.8.27.beta1 lib/volt/extra_core/array.rb
volt-0.8.26.beta1 lib/volt/extra_core/array.rb
volt-0.8.26 lib/volt/extra_core/array.rb
volt-0.8.24 lib/volt/extra_core/array.rb
volt-0.8.23 lib/volt/extra_core/array.rb
volt-0.8.22 lib/volt/extra_core/array.rb
volt-0.8.22.beta2 lib/volt/extra_core/array.rb
volt-0.8.22.beta1 lib/volt/extra_core/array.rb
volt-0.8.21 lib/volt/extra_core/array.rb
volt-0.8.20 lib/volt/extra_core/array.rb
volt-0.8.19 lib/volt/extra_core/array.rb
volt-0.8.18 lib/volt/extra_core/array.rb
volt-0.8.17 lib/volt/extra_core/array.rb
volt-0.8.16 lib/volt/extra_core/array.rb