Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reinstate Range#step default argument.
[#595 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
bfolkens authored and jeremy committed Aug 28, 2008
1 parent 96c6fe0 commit 293f997
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -8,7 +8,7 @@ def self.included(base) #:nodoc:
end

if RUBY_VERSION < '1.9'
def step_with_blockless(value, &block)
def step_with_blockless(value = 1, &block)
if block_given?
step_without_blockless(value, &block)
else
Expand All @@ -18,7 +18,7 @@ def step_with_blockless(value, &block)
end
end
else
def step_with_blockless(value, &block)
def step_with_blockless(value = 1, &block)
if block_given?
step_without_blockless(value, &block)
else
Expand Down

0 comments on commit 293f997

Please sign in to comment.