Sha256: 2896fb45e16c4022d2553baf5959bf6a030970201e59cd2920835431061030a7

Contents?: true

Size: 114 Bytes

Versions: 13

Compression:

Stored size: 114 Bytes

Contents

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

    return total
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
volt-0.8.15 lib/volt/extra_core/array.rb
volt-0.8.14 lib/volt/extra_core/array.rb
volt-0.8.13 lib/volt/extra_core/array.rb
volt-0.8.11 lib/volt/extra_core/array.rb
volt-0.8.10 lib/volt/extra_core/array.rb
volt-0.8.9 lib/volt/extra_core/array.rb
volt-0.8.8 lib/volt/extra_core/array.rb
volt-0.8.7 lib/volt/extra_core/array.rb
volt-0.8.6 lib/volt/extra_core/array.rb
volt-0.8.5 lib/volt/extra_core/array.rb
volt-0.8.4 lib/volt/extra_core/array.rb
volt-0.8.3 lib/volt/extra_core/array.rb
volt-0.8.2 lib/volt/extra_core/array.rb