Class: Aruba::EventBus::NameResolver::FailingResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/aruba/event_bus/name_resolver.rb

Overview

Default failing resolver

This comes into play if the user passes an invalid event type

Class Method Summary collapse

Class Method Details

.match?(event_id) ⇒ Boolean

Returns:

  • (Boolean)

123
124
125
# File 'lib/aruba/event_bus/name_resolver.rb', line 123

def match?(event_id)
  fail ArgumentError, %(Input type "#{event_id.class}" of event_id "#{event_id}" is invalid)
end

.supportsObject


127
128
129
# File 'lib/aruba/event_bus/name_resolver.rb', line 127

def supports
  []
end