Class: Rack::Delegate::Action
- Inherits:
-
Struct
- Object
- Struct
- Rack::Delegate::Action
- Defined in:
- lib/rack/delegate/action.rb
Instance Attribute Summary collapse
-
#delegator ⇒ Object
Returns the value of attribute delegator.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
Instance Attribute Details
#delegator ⇒ Object
Returns the value of attribute delegator
3 4 5 |
# File 'lib/rack/delegate/action.rb', line 3 def delegator @delegator end |
#pattern ⇒ Object
Returns the value of attribute pattern
3 4 5 |
# File 'lib/rack/delegate/action.rb', line 3 def pattern @pattern end |
Instance Method Details
#dispatch(request) ⇒ Object
4 5 6 7 8 |
# File 'lib/rack/delegate/action.rb', line 4 def dispatch(request) pattern.match(request.fullpath) do throw :dispatched, delegator end end |