Class: Aruba::EventBus::NameResolver::StringResolver
- Inherits:
-
Object
- Object
- Aruba::EventBus::NameResolver::StringResolver
- Includes:
- ResolveHelpers
- Defined in:
- lib/aruba/event_bus/name_resolver.rb
Overview
Convert a string in to an event class
Class Method Summary collapse
- .match?(event_id) ⇒ Boolean
-
.supports ⇒ Object
Which types are supported.
Instance Method Summary collapse
Methods included from ResolveHelpers
Class Method Details
.match?(event_id) ⇒ Boolean
80 81 82 |
# File 'lib/aruba/event_bus/name_resolver.rb', line 80 def match?(event_id) event_id.is_a? String end |
.supports ⇒ Object
Which types are supported
85 86 87 |
# File 'lib/aruba/event_bus/name_resolver.rb', line 85 def supports [String] end |
Instance Method Details
#transform(_, event_id) ⇒ Object
90 91 92 |
# File 'lib/aruba/event_bus/name_resolver.rb', line 90 def transform(_, event_id) constantize(event_id) end |