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

Version Path
aws-sdk-core-3.214.0 lib/seahorse/client/events.rb
aws-sdk-core-3.213.0 lib/seahorse/client/events.rb
aws-sdk-core-3.212.0 lib/seahorse/client/events.rb
aws-sdk-core-3.211.0 lib/seahorse/client/events.rb
aws-sdk-core-3.210.0 lib/seahorse/client/events.rb
aws-sdk-core-3.209.1 lib/seahorse/client/events.rb
aws-sdk-core-3.209.0 lib/seahorse/client/events.rb
aws-sdk-core-3.208.0 lib/seahorse/client/events.rb
aws-sdk-core-3.207.0 lib/seahorse/client/events.rb
aws-sdk-core-3.206.0 lib/seahorse/client/events.rb
aws-sdk-core-3.205.0 lib/seahorse/client/events.rb
aws-sdk-core-3.204.0 lib/seahorse/client/events.rb
aws-sdk-core-3.203.0 lib/seahorse/client/events.rb
aws-sdk-core-3.202.2 lib/seahorse/client/events.rb
aws-sdk-core-3.202.1 lib/seahorse/client/events.rb
aws-sdk-core-3.202.0 lib/seahorse/client/events.rb
aws-sdk-core-3.201.5 lib/seahorse/client/events.rb
aws-sdk-core-3.201.4 lib/seahorse/client/events.rb
aws-sdk-core-3.201.3 lib/seahorse/client/events.rb
aws-sdk-core-3.201.2 lib/seahorse/client/events.rb