Class: Rain::WildcardRouteEvent

Inherits:
LowEvent
  • Object
show all
Defined in:
lib/router/wildcard_route_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, route:, action: :render) ⇒ WildcardRouteEvent

Returns a new instance of WildcardRouteEvent.



9
10
11
12
13
# File 'lib/router/wildcard_route_event.rb', line 9

def initialize(key:, route:, action: :render)
  super(key:, action:)

  @route = route
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



7
8
9
# File 'lib/router/wildcard_route_event.rb', line 7

def params
  @params
end

#routeObject (readonly)

Returns the value of attribute route.



7
8
9
# File 'lib/router/wildcard_route_event.rb', line 7

def route
  @route
end