lib/polyfill/v2_3/enumerable/instance/chunk_while.rb in polyfill-0.5.0 vs lib/polyfill/v2_3/enumerable/instance/chunk_while.rb in polyfill-0.6.0

- old
+ new

@@ -5,14 +5,14 @@ module Enumerable module Instance module ChunkWhile module Method def chunk_while - block = Proc.new + block = ::Proc.new return [self] if size == 1 - Enumerator.new do |yielder| + ::Enumerator.new do |yielder| output = [] each_cons(2).with_index(1) do |(a, b), run| if run == size - 1 if block.call(a, b) output.push(a, b)