class Aruba::EventBus::NameResolver::StringResolver

@private Convert a string in to an event class

Public Class Methods

match?(event_id) click to toggle source
# File lib/aruba/event_bus/name_resolver.rb, line 91
def match?(event_id)
  event_id.is_a? String
end
supports() click to toggle source

Which types are supported

# File lib/aruba/event_bus/name_resolver.rb, line 96
def supports
  [String]
end

Public Instance Methods

transform(_, event_id) click to toggle source
# File lib/aruba/event_bus/name_resolver.rb, line 101
def transform(_, event_id)
  constantize(event_id)
end