Class: Rooibos::Router::Guard::CombinedGuard
- Inherits:
-
Object
- Object
- Rooibos::Router::Guard::CombinedGuard
- Defined in:
- lib/rooibos/router/guard.rb
Overview
Combines two guards into a single callable without creating a closure.
Instance Method Summary collapse
Instance Method Details
#arity ⇒ Object
37 |
# File 'lib/rooibos/router/guard.rb', line 37 def arity = 2 |
#call(msg, model) ⇒ Object
38 |
# File 'lib/rooibos/router/guard.rb', line 38 def call(msg, model) = inner.call(msg, model) && outer.call(msg, model) |