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)

Raises:

  • (ArgumentError)


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

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

.supportsObject



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

def supports
  []
end