Sha256: 680eedc7ef4829e3d9a34f260729d2c3a17712e05e16e8f3879b29b4484821df
Contents?: true
Size: 287 Bytes
Versions: 2
Compression:
Stored size: 287 Bytes
Contents
module VirtualKeywords # Deeply copy an array. # # Arguments: # array: (Array[A]) the array to copy. A is any arbitrary type. # # Returns: # (Array[A]) a deep copy of the original array. def self.deep_copy_array(array) Marshal.load(Marshal.dump(array)) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virtual_keywords-0.3.1 | lib/virtual_keywords/deep_copy_array.rb |
virtual_keywords-0.3.0 | lib/virtual_keywords/deep_copy_array.rb |