Class: ActionDispatch::Router::MatchResult
- Defined in:
- runtime/action_dispatch/router.rb,
runtime/action_dispatch/router.rbs
Overview
The result of a successful Router.match call: the resolved controller
class, action symbol, and captured path parameters. Positional
initialize, same rationale as Route.
Instance Attribute Summary collapse
- #action ⇒ Symbol readonly
- #controller ⇒ Class readonly
- #path_params ⇒ Hash[String, String] readonly
- #req_format ⇒ Symbol? readonly
Instance Method Summary collapse
-
#initialize(controller, action, path_params, req_format = nil) ⇒ MatchResult
constructor
A new instance of MatchResult.
Constructor Details
#initialize(controller, action, path_params, req_format = nil) ⇒ MatchResult
Returns a new instance of MatchResult.
21 |
# File 'runtime/action_dispatch/router.rbs', line 21
def initialize: (Class controller, Symbol action, Hash[String, String] path_params, ?Symbol? req_format) -> void
|
Instance Attribute Details
#action ⇒ Symbol (readonly)
17 |
# File 'runtime/action_dispatch/router.rbs', line 17
def action: () -> Symbol
|
#controller ⇒ Class (readonly)
16 |
# File 'runtime/action_dispatch/router.rbs', line 16
def controller: () -> Class
|
#path_params ⇒ Hash[String, String] (readonly)
18 |
# File 'runtime/action_dispatch/router.rbs', line 18
def path_params: () -> Hash[String, String]
|
#req_format ⇒ Symbol? (readonly)
19 |
# File 'runtime/action_dispatch/router.rbs', line 19
def req_format: () -> Symbol?
|