We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7919f63 + 564354e commit a205319Copy full SHA for a205319
src/main/ruby/truffleruby/core/enumerable.rb
@@ -73,7 +73,7 @@ def chunk(&original_block)
73
end
74
75
def chunk_while(&block)
76
- block = Proc.new(block)
+ raise ArgumentError, 'tried to create Proc object without a block' unless block
77
Enumerator.new do |yielder|
78
accumulator = nil
79
prev = nil
@@ -245,7 +245,7 @@ def slice_before(arg = undefined, &block)
245
246
247
def slice_when(&block)
248
249
250
251
0 commit comments