Module: Tins::DeepDup

Included in:
Object
Defined in:
lib/tins/deep_dup.rb

Instance Method Summary collapse

Instance Method Details

#deep_dupObject



3
4
5
6
7
# File 'lib/tins/deep_dup.rb', line 3

def deep_dup
  Marshal.load(Marshal.dump(self))
rescue TypeError
  return self
end