#current_order ⇒ Object
readonly Returns the value of attribute current_order. #engine ⇒ Object
readonly Returns the value of attribute engine. #routes ⇒ Object
readonly Returns the value of attribute routes. #add(verb, path, options = {}, &block) ⇒ Object
Adds a new route to routes. #call(request, &block) ⇒ Object
Returns all routes which are matched with the condition. #increment_order ⇒ Object
Increments the order. #initialize ⇒ Router
constructor Constructs an instance of PathRouter::Router. #path(name, *args) ⇒ Object
Finds a path which is matched with conditions from arguments. #prepare! ⇒ Object
Constructs an instance of PathRouter::Compiler, and sorts all routes by using the order. #recognize(request_or_env) ⇒ Object
Returns all routes which are matched with the condition without block. #recognize_path(path_info) ⇒ Object
Recognizes route and expanded params from a path. #reset! ⇒ Object
Resets all routes, current order and preparation. Constructs an instance of PathRouter::Router.
Returns the value of attribute current_order
Returns the value of attribute engine
Returns the value of attribute routes
Adds a new route to routes.
Returns all routes which are matched with the condition
Increments the order.
Finds a path which is matched with conditions from arguments
Constructs an instance of PathRouter::Compiler, and sorts all routes by using the order.
Returns all routes which are matched with the condition without block
Recognizes route and expanded params from a path.
Resets all routes, current order and preparation.
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/PathRouter/Router