Permalink
Browse files

constants first

  • Loading branch information...
1 parent 19977a2 commit ad3feef1af995f54244204c4830946acc5747f05 @joshbuddy committed Sep 7, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/http_router.rb
View
@@ -12,10 +12,6 @@
require 'http_router/util'
class HttpRouter
-
- attr_reader :root, :routes, :known_methods, :named_routes, :nodes
- attr_accessor :default_app, :url_mount
-
# Raised when a url is not able to be generated for the given parameters
InvalidRouteException = Class.new(RuntimeError)
# Raised when a Route is not able to be generated due to a missing parameter.
@@ -27,6 +23,9 @@ class HttpRouter
# Raised when there are left over options
LeftOverOptions = Class.new(RuntimeError)
+ attr_reader :root, :routes, :known_methods, :named_routes, :nodes
+ attr_accessor :default_app, :url_mount
+
# Creates a new HttpRouter.
# Can be called with either <tt>HttpRouter.new(proc{|env| ... }, { .. options .. })</tt> or with the first argument omitted.
# If there is a proc first, then it's used as the default app in the case of a non-match.

0 comments on commit ad3feef

Please sign in to comment.