summaryrefslogtreecommitdiff
path: root/ruby_2_2/lib/rake/cloneable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_2_2/lib/rake/cloneable.rb')
-rw-r--r--ruby_2_2/lib/rake/cloneable.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/ruby_2_2/lib/rake/cloneable.rb b/ruby_2_2/lib/rake/cloneable.rb
deleted file mode 100644
index d53645f2f3..0000000000
--- a/ruby_2_2/lib/rake/cloneable.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-module Rake
- ##
- # Mixin for creating easily cloned objects.
-
- module Cloneable # :nodoc:
- # The hook that is 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