Class: Aruba::EventBus::NameResolver::ClassResolver

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

Overview

Convert a class in to an event class

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.match?(event_id) ⇒ Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/aruba/event_bus/name_resolver.rb', line 70

def match?(event_id)
  event_id.is_a? Class
end

.supportsObject

Which types are supported



75
76
77
# File 'lib/aruba/event_bus/name_resolver.rb', line 75

def supports
  [Class]
end

Instance Method Details

#transform(_, event_id) ⇒ Object



80
81
82
# File 'lib/aruba/event_bus/name_resolver.rb', line 80

def transform(_, event_id)
  event_id
end