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.



49
50
51
# File 'lib/rake.rb', line 49

def rake_dup()
  dup
end