Unverified Commit 3ac98009 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4602 from shuujii/remove-EnumeratorChain-initialize_copy

Remove `Enumerator::Chain#initialize_copy`
parents 34741d51 27e3d92a
......@@ -20,10 +20,6 @@ class Enumerator
@enums = args
end
def initialize_copy(orig)
@enums = orig.__copy_enums
end
def each(&block)
return to_enum unless block_given?
......@@ -57,11 +53,5 @@ class Enumerator
def inspect
"#<#{self.class}: #{@enums.inspect}>"
end
def __copy_enums
@enums.each_with_object([]) do |e, a|
a << e.clone
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment