Class: Object

Inherits:
BasicObject
Defined in:
lib/safe_dup.rb

Overview

Now you too can dup objects without fear of annoying exceptions!

Instance Method Summary collapse

Instance Method Details

#safe_dupObject

By default, reference types use the dup method.



8
9
10
# File 'lib/safe_dup.rb', line 8

def safe_dup
  dup
end