Class: Rack::Delegate::ConstrainedAction
- Inherits:
-
Struct
- Object
- Struct
- Rack::Delegate::ConstrainedAction
- Defined in:
- lib/rack/delegate/constrained_action.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
3 4 5 |
# File 'lib/rack/delegate/constrained_action.rb', line 3 def action @action end |
#constraints ⇒ Object
Returns the value of attribute constraints
3 4 5 |
# File 'lib/rack/delegate/constrained_action.rb', line 3 def constraints @constraints end |
Instance Method Details
#dispatch(request) ⇒ Object
4 5 6 7 8 |
# File 'lib/rack/delegate/constrained_action.rb', line 4 def dispatch(request) if appropriate?(request) action.dispatch(request) end end |