Skip to content

Commit

Permalink
fixed arity of routing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Mar 3, 2012
1 parent b8ed248 commit dce6680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/renee/core/routing.rb
Expand Up @@ -107,7 +107,7 @@ def optional_variable(type = nil)
# @param [Symbol] type The type to use for match.
def multi_variable(count, type = nil)
block_given? ?
complex_variable(type, '/', count) { |*mv| yield *mv } :
complex_variable(type, '/', count) { |mv| yield mv } :
create_chain_proxy(:multi_variable, count, type)
end
alias_method :multi_var, :multi_variable
Expand All @@ -118,7 +118,7 @@ def multi_variable(count, type = nil)
# @param [Symbol] type The type to use for match.
def repeating_variable(type = nil)
block_given? ?
complex_variable(type, '/', nil) { |*mv| yield *mv } :
complex_variable(type, '/', nil) { |mv| yield mv } :
create_chain_proxy(:repeating_variable, type)
end
alias_method :glob, :repeating_variable
Expand Down

0 comments on commit dce6680

Please sign in to comment.