Padrino::PathRouter::Compiler
Class: Padrino::PathRouter::Compiler
- Inherits:
- Object
- Object
- Padrino::PathRouter::Compiler
Overview
High performance engine for finding all routes which are matched with pattern
Instance Attribute Summary
-
#routes ⇒ Object
Returns the value of attribute routes.
Instance Method Summary
-
#call_by_request(request) ⇒ Object
Calls routes by using request. -
#compile! ⇒ Object
Compiles all routes into regexps. -
#compiled? ⇒ Boolean
Returns true if all routes has been compiled. -
#find_by(request_or_env) ⇒ Object
Finds routes by using request or env. -
#find_by_pattern(pattern) ⇒ Object
Finds routes by using PATH_INFO. -
#initialize(routes) ⇒ Compiler
constructor Constructs an instance of Padrino::PathRouter::Compiler.
Constructor Details
#initialize(routes) ⇒ Compiler
Constructs an instance of Padrino::PathRouter::Compiler
Instance Attribute Details
#routes ⇒ Object
Returns the value of attribute routes
Instance Method Details
#call_by_request(request) ⇒ Object
Calls routes by using request.
#compile! ⇒ Object
Compiles all routes into regexps.
#compiled? ⇒ Boolean
Returns true if all routes has been compiled.
#find_by(request_or_env) ⇒ Object
Finds routes by using request or env.
#find_by_pattern(pattern) ⇒ Object
Finds routes by using PATH_INFO.
© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/PathRouter/Compiler