Skip to content
Permalink
Browse files

two more passing specs

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 7, 2013
1 parent d8afbec commit fc9f01268b706ac77595b47c8a641bdc4262ec52
Showing with 2 additions and 4 deletions.
  1. +1 −1 lib-topaz/fixnum.rb
  2. +1 −1 lib-topaz/integer.rb
  3. +0 −1 spec/tags/core/integer/downto_tags.txt
  4. +0 −1 spec/tags/core/integer/upto_tags.txt
@@ -8,7 +8,7 @@ def succ
end

def upto(n, &block)
return self.enum_for(:upto) if !block
return self.enum_for(:upto, n) if !block
i = self
while i <= n
yield i
@@ -1,6 +1,6 @@
class Integer < Numeric
def downto(limit, &block)
return self.enum_for(:downto) unless block
return self.enum_for(:downto, limit) unless block
current = self
while current >= limit
yield current

This file was deleted.

This file was deleted.

0 comments on commit fc9f012

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