Sha256: e52f36386830cdb5cadb9270ff7085cc0a3f7a5bc38ecbe3b085fc347bddd2d0
Contents?: true
Size: 356 Bytes
Versions: 34
Compression:
Stored size: 356 Bytes
Contents
module Aws class EventEmitter def initialize @listeners = {} end def on(type, callback) (@listeners[type] ||= []) << callback end def signal(type, event) return unless @listeners[type] @listeners[type].each do |listener| listener.call(event) if event.event_type == type end end end end
Version data entries
34 entries across 34 versions & 1 rubygems