Padrino::PathRouter::Route
Class: Padrino::PathRouter::Route
- Inherits:
- Object
- Object
- Padrino::PathRouter::Route
Constant Summary
- SIGNIFICANT_VARIABLES_REGEX =
/(^|[^\\])[:\*]([a-zA-Z0-9_]+)/.freeze
Instance Attribute Summary
-
#action ⇒ Object
The accessors will be used in other classes. -
#block ⇒ Object
readonly A reader for compile option. -
#cache ⇒ Object
The accessors will be used in other classes. -
#cache_expires ⇒ Object
The accessors will be used in other classes. -
#cache_key ⇒ Object
The accessors will be used in other classes. -
#capture ⇒ Object
The accessors are useful to access from PathRouter::Router. -
#controller ⇒ Object
The accessors will be used in other classes. -
#default_values ⇒ Object
The accessors will be used in other classes. -
#index ⇒ Object
The accessors are useful to access from PathRouter::Router. -
#name ⇒ Object
The accessors are useful to access from PathRouter::Router. -
#options ⇒ Object
The accessors are useful to access from PathRouter::Router. -
#order ⇒ Object
The accessors are useful to access from PathRouter::Router. -
#parent ⇒ Object
The accessors will be used in other classes. -
#path_for_generation ⇒ Object
The accessors will be used in other classes. -
#regexp ⇒ Object
The accessors are useful to access from PathRouter::Router. -
#router ⇒ Object
writeonly The router will be treated in this class. -
#use_layout ⇒ Object
The accessors will be used in other classes. -
#user_agent ⇒ Object
The accessors will be used in other classes. -
#verb ⇒ Object
readonly A reader for compile option.
Instance Method Summary
-
#after_filters(&block) ⇒ Object
Returns after_filters as an array. -
#before_filters(&block) ⇒ Object
Returns before_filters as an array. -
#block_parameter_length ⇒ Object
Returns block parameter length. -
#call(app, *args) ⇒ Object
Calls the route block with arguments. -
#custom_conditions(&block) ⇒ Object
Returns custom_conditions as an array. -
#initialize(path, verb, options = {}, &block) ⇒ Route
constructor Constructs an instance of PathRouter::Route. -
#match(pattern) ⇒ Object
-
#matcher ⇒ Object
Returns an instance of PathRouter::Matcher that is associated with the route. -
#original_path ⇒ Object
Returns the original path. -
#params_for(pattern, others = {}) ⇒ Object
Returns parameters which is created by the matcher. -
#path(*args) ⇒ Object
Expands the path by using parameters. -
#path=(pattern) ⇒ Object
Overwrites path value by passing new path string. -
#request_methods ⇒ Object
Returns the route's verb as an array. -
#significant_variable_names ⇒ Object
Returns signficant variable names. -
#to(&block) ⇒ Object
Associates a block with the route, and increments current order of the router.
Constructor Details
#initialize(path, verb, options = {}, &block) ⇒ Route
Constructs an instance of PathRouter::Route.
Instance Attribute Details
#action ⇒ Object
The accessors will be used in other classes
#block ⇒ Object (readonly)
A reader for compile option
#cache ⇒ Object
The accessors will be used in other classes
#cache_expires ⇒ Object
The accessors will be used in other classes
#cache_key ⇒ Object
The accessors will be used in other classes
#capture ⇒ Object
The accessors are useful to access from PathRouter::Router
#controller ⇒ Object
The accessors will be used in other classes
#default_values ⇒ Object
The accessors will be used in other classes
#index ⇒ Object
The accessors are useful to access from PathRouter::Router
#name ⇒ Object
The accessors are useful to access from PathRouter::Router
#options ⇒ Object
The accessors are useful to access from PathRouter::Router
#order ⇒ Object
The accessors are useful to access from PathRouter::Router
#parent ⇒ Object
The accessors will be used in other classes
#path_for_generation ⇒ Object
The accessors will be used in other classes
#regexp ⇒ Object
The accessors are useful to access from PathRouter::Router
#router=(value) ⇒ Object (writeonly)
The router will be treated in this class
#use_layout ⇒ Object
The accessors will be used in other classes
#user_agent ⇒ Object
The accessors will be used in other classes
#verb ⇒ Object (readonly)
A reader for compile option
Instance Method Details
#after_filters(&block) ⇒ Object
Returns after_filters as an array.
#before_filters(&block) ⇒ Object
Returns before_filters as an array.
#block_parameter_length ⇒ Object
Returns block parameter length.
#call(app, *args) ⇒ Object
Calls the route block with arguments.
#custom_conditions(&block) ⇒ Object
Returns custom_conditions as an array.
#match(pattern) ⇒ Object
#matcher ⇒ Object
Returns an instance of PathRouter::Matcher that is associated with the route.
#original_path ⇒ Object
Returns the original path.
#params_for(pattern, others = {}) ⇒ Object
Returns parameters which is created by the matcher.
#path(*args) ⇒ Object
Expands the path by using parameters.
#path=(pattern) ⇒ Object
Overwrites path value by passing new path string.
#request_methods ⇒ Object
Returns the route's verb as an array.
#significant_variable_names ⇒ Object
Returns signficant variable names.
#to(&block) ⇒ Object
Associates a block with the route, and increments current order of the router.
© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/PathRouter/Route