Module: Kernel

Defined in:
lib/rake.rb

Overview

Some objects are dupable, some are not. So we define a version of dup (called rake_dup) that returns self on the handful of classes that are not dupable.

Instance Method Summary collapse

Instance Method Details

#rake_dupObject

Duplicate an object if it can be duplicated. If it can not be cloned or duplicated, then just return the original object.



54
55
56
# File 'lib/rake.rb', line 54

def rake_dup()
  dup
end