Skip to content
Permalink
Browse files

Merge pull request #550 from jstepien/integer-times-without-block

Integer#times without block returns Enumerator
  • Loading branch information
alex committed Mar 26, 2013
2 parents 6598c16 + 835dbff commit ffc11e199df4538e5a596bafa2b5187311b6ae52
Showing with 2 additions and 2 deletions.
  1. +2 −1 lib-topaz/integer.rb
  2. +0 −1 spec/tags/core/integer/times_tags.txt
@@ -8,7 +8,8 @@ def downto(limit, &block)
end
end

def times
def times(&block)
return self.enum_for(:times) unless block
i = 0
while i < self
yield i

This file was deleted.

0 comments on commit ffc11e1

Please sign in to comment.
You can’t perform that action at this time.