Class: Rooibos::Router::Predicate::InstancesOf
- Inherits:
-
Object
- Object
- Rooibos::Router::Predicate::InstancesOf
- Defined in:
- lib/rooibos/router/predicate.rb
Overview
Matches messages by class.
Instance Method Summary collapse
Instance Method Details
#arity ⇒ Object
50 |
# File 'lib/rooibos/router/predicate.rb', line 50 def arity = 2 |
#call(message, _model) ⇒ Object
52 53 54 |
# File 'lib/rooibos/router/predicate.rb', line 52 def call(, _model) .is_a?(klass) end |