Methods

Kernel

Public Instance Methods

deep_copy() click to toggle source

Anything that can be marshaled can be copied in totality. This is also commonly called a deep_copy.

"ABC".copy  #=> "ABC"
# File lib/clio/facets/kernel.rb, line 8
def deep_copy
  Marshal::load(Marshal::dump(self))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.