W3cubDocs

/Padrino

Class: Padrino::PathRouter::Compiler

Inherits:
Object
  • Object

Overview

High performance engine for finding all routes which are matched with pattern

Instance Attribute Summary

Instance Method Summary

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.

Returns:

  • (Boolean)

#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