Padrino::PathRouter::Compiler

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部