Sha256: 262ae41242b8e952042d183c6d2c6ad9fb3793e7e8c894b201b86befae2871a8
Contents?: true
Size: 391 Bytes
Versions: 190
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true module Seahorse module Client module EventEmitter def initialize(*args) @listeners = {} super end def emit(event_name, *args, &block) @listeners[event_name] ||= [] @listeners[event_name] << block if block_given? end def signal(event, *args) @listeners end end end end
Version data entries
190 entries across 190 versions & 1 rubygems