Class | Rack::Mount::Route |
In: |
lib/rack/mount/route.rb
|
Parent: | Object |
Route is an internal class used to wrap a single route attributes.
Plugins should not depend on any method on this class or instantiate new Route objects. Instead use the factory method, RouteSet#add_route to create new routes and add them to the set.
app | [R] | Valid rack application to call if conditions are met |
conditions | [R] | A hash of conditions to match against. Conditions may be expressed as strings or regexps to match against. |
defaults | [R] | A hash of values that always gets merged into the parameters hash |
name | [R] | Symbol identifier for the route used with named route generations |
named_captures | [R] |