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.
1 parent c66b62a commit 564354eCopy full SHA for 564354e
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
@@ -246,7 +246,7 @@ def slice_before(arg = undefined, &block)
246
247
248
def slice_when(&block)
249
250
251
252
0 commit comments