summaryrefslogtreecommitdiff
path: root/lib/rake/cloneable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake/cloneable.rb')
-rw-r--r--lib/rake/cloneable.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/rake/cloneable.rb b/lib/rake/cloneable.rb
deleted file mode 100644
index ac67471232..0000000000
--- a/lib/rake/cloneable.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-module Rake
- # ##########################################################################
- # Mixin for creating easily cloned objects.
- #
- module Cloneable
- # The hook that invoked by 'clone' and 'dup' methods.
- def initialize_copy(source)
- super
- source.instance_variables.each do |var|
- src_value = source.instance_variable_get(var)
- value = src_value.clone rescue src_value
- instance_variable_set(var, value)
- end
- end
- end
-end