Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion spec/truffle/tags/core/enumerable/chunk_tags.txt

This file was deleted.

3 changes: 2 additions & 1 deletion truffle/src/main/ruby/core/enumerable.rb
Original file line number Diff line number Diff line change
@@ -30,7 +30,8 @@
# these methods can be written *in those classes* to override these.

module Enumerable
def chunk(initial_state = nil, &original_block)
def chunk(&original_block)
initial_state = nil
raise ArgumentError, "no block given" unless block_given?
::Enumerator.new do |yielder|
previous = nil

0 comments on commit 982ff1d

Please sign in to comment.