Module: CiteProc::Extensions::DeepCopy

Included in:
Array, Hash
Defined in:
lib/citeproc/extensions.rb

Instance Method Summary collapse

Instance Method Details

#deep_copyObject

See Matz, Flanagan: ‘The Ruby Programming Language’, p.83



19
20
21
# File 'lib/citeproc/extensions.rb', line 19

def deep_copy
  Marshal.load(Marshal.dump(self))
end