Module: ActionDispatch::Router

Defined in:
runtime/action_dispatch/router.rbs,
runtime/action_dispatch/router.rb

Defined Under Namespace

Classes: MatchResult, Route

Class Method Summary collapse

Class Method Details

.match(method, path, table) ⇒ MatchResult?

the routing entry: the first row whose verb and pattern match the request.

Parameters:

  • method (String) —

    the request verb

  • path (String) —

    the request path

  • table (Array) —

    the route table (Snails::RouteTable.table)

Returns:

  • (MatchResult, nil) —

    the match, or nil when no row matches



77
# File 'runtime/action_dispatch/router.rb', line 77

def self.match: (