Module: ZPNG::DeepCopyable

Included in:
Chunk, Color, Image
Defined in:
lib/zpng/deep_copyable.rb

Instance Method Summary collapse

Instance Method Details

#deep_copyObject



3
4
5
# File 'lib/zpng/deep_copyable.rb', line 3

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