Sha256: 2ba5d587f17fccb352d5169d102d49cc99d77db75c0fa65a4f8de79eaf85564c

Contents?: true

Size: 217 Bytes

Versions: 9

Compression:

Stored size: 217 Bytes

Contents

class Array
  def deep_dup
    self.dup.tap do |dupped|
      dupped.each_with_index do |element, index|
        dupped[index] = element.respond_to?(:deep_dup) ? element.deep_dup : element
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
braintree-rails-1.4.1 lib/braintree_rails/array_ext.rb
braintree-rails-1.4.0 lib/braintree_rails/array_ext.rb
braintree-rails-1.3.0 lib/braintree_rails/array_ext.rb
braintree-rails-1.2.3 lib/braintree_rails/array_ext.rb
braintree-rails-1.2.2 lib/braintree_rails/array_ext.rb
braintree-rails-1.2.1 lib/braintree_rails/array_ext.rb
braintree-rails-1.2.0 lib/braintree_rails/array_ext.rb
braintree-rails-1.1.0 lib/braintree_rails/array_ext.rb
braintree-rails-1.0.0 lib/braintree_rails/array_ext.rb