Sha256: 7b6993b24b9c974e54be07f6d3e9b34ba292f947546a15c9542d43c8c59ce8f6
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Emittance ## # Since events don't need to be dynamically generated when using topics, we essentially want to stub out all of the # class creation and registration logic. # module TopicLookup class << self def identifiers_for_klass(_klass, event = nil) raise ArgumentError, 'Cannot generate identifiers without an event' unless event [event.topic] end def register_identifier(klass, identifier) # no op end def find_event_klass(*_identifiers) Emittance::Event end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emittance-2.0.0.pre.1 | lib/emittance/topic_lookup.rb |