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