Module: Igniter::Extensions::Contracts::Reactive::Matcher
- Defined in:
- lib/igniter/extensions/contracts/reactive/matcher.rb
Class Method Summary collapse
Class Method Details
.match?(subscription, event) ⇒ Boolean
10 11 12 13 14 15 |
# File 'lib/igniter/extensions/contracts/reactive/matcher.rb', line 10 def match?(subscription, event) return false unless subscription.event_type == event.type return true if subscription.path.nil? subscription.path == event.path end |