Skip to content

Commit

Permalink
Make first arg optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhenderson committed May 3, 2013
1 parent 90a4f96 commit 5e48be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/routes.rb
Expand Up @@ -60,12 +60,12 @@ def match

end

def self.new app
def self.new app = nil
@app ||= Matcher.new app
end

def self.call env
new(nil).call env
new.call env
end

def self.compile!
Expand Down

0 comments on commit 5e48be4

Please sign in to comment.