optimize from each to enumerator_block_call

This commit is contained in:
ksss
2014-03-15 00:47:12 +09:00
parent 0bb7f5e950
commit 4f8e11ae57
@@ -208,7 +208,7 @@ class Enumerator
def with_object object
return to_enum :with_object, object unless block_given?
each do |i|
enumerator_block_call do |i|
yield [i,object]
end
object