Padrino::PathRouter::Router

Class: Padrino::PathRouter::Router

Inherits:
Object
  • Object

Instance Attribute Summary

Instance Method Summary

Constructor Details

#initialize ⇒ Router

Constructs an instance of PathRouter::Router.

Instance Attribute Details

#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

Instance Method Details

#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.

#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.

© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/PathRouter/Router

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部