Skip to content

Commit 365e144

Browse files
allow use of default value
1 parent aaf0693 commit 365e144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bitarray-array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def [](position)
2727

2828
# Iterate over each bit
2929
def each
30-
return to_enum(:each) unless block_given?
30+
return to_enum unless block_given?
3131
@size.times { |position| yield self[position] }
3232
end
3333

0 commit comments

Comments
 (0)