Sha256: 1193df04fbba95aeafa43e5ff566cf1f55ceda2323079eb525988117b8cc4243

Contents?: true

Size: 237 Bytes

Versions: 25

Compression:

Stored size: 237 Bytes

Contents

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

    return total
  end

  def deep_cur
    new_array = []
    each do |item|
      new_array << item.deep_cur
    end

    return new_array
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
volt-0.8.1 lib/volt/extra_core/array.rb
volt-0.8.0 lib/volt/extra_core/array.rb
volt-0.7.23 lib/volt/extra_core/array.rb
volt-0.7.22 lib/volt/extra_core/array.rb
volt-0.7.21 lib/volt/extra_core/array.rb
volt-0.7.20 lib/volt/extra_core/array.rb
volt-0.7.19 lib/volt/extra_core/array.rb
volt-0.7.18 lib/volt/extra_core/array.rb
volt-0.7.17 lib/volt/extra_core/array.rb
volt-0.7.16 lib/volt/extra_core/array.rb
volt-0.7.15 lib/volt/extra_core/array.rb
volt-0.7.14 lib/volt/extra_core/array.rb
volt-0.7.13 lib/volt/extra_core/array.rb
volt-0.7.12 lib/volt/extra_core/array.rb
volt-0.7.10 lib/volt/extra_core/array.rb
volt-0.7.9 lib/volt/extra_core/array.rb
volt-0.7.8 lib/volt/extra_core/array.rb
volt-0.7.7 lib/volt/extra_core/array.rb
volt-0.7.6 lib/volt/extra_core/array.rb
volt-0.7.5 lib/volt/extra_core/array.rb