Permalink
Browse files

Fix Enumerable#chunk for a reserved symbol

  • Loading branch information...
1 parent a0f044b commit c5b437a94949c2126152ced6c8f6dcf696b8fdbe @kachick committed Apr 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 kernel/common/enumerable19.rb
@@ -15,7 +15,7 @@ def chunk(initial_state = nil, &original_block)
previous = nil
case key
when nil, :_separator
- when :_singleton
+ when :_alone
yielder.yield [key, [val]]
else
raise RuntimeError, "symbol beginning with an underscore are reserved"

0 comments on commit c5b437a

Please sign in to comment.