Class: Flon::Router::Match

Inherits:
Struct
  • Object
show all
Defined in:
lib/flon/router.rb

Overview

A route’s match is encapsulated in this struct. #action has the action associated with the route matched against and #params has the parameters hash.

Instance Attribute Summary collapse

Instance Attribute Details

#actionObject (readonly)

Returns the route’s action.

Returns:

  • the route’s action



18
# File 'lib/flon/router.rb', line 18

Match = Struct.new(:action, :params)

#paramsHash{Symbol => Object} (readonly)

Returns the route’s bound parameters.

Returns:

  • (Hash{Symbol => Object})

    the route’s bound parameters



18
# File 'lib/flon/router.rb', line 18

Match = Struct.new(:action, :params)