Sha256: 70d18c0f9b2013ee5b6e95da7e43dff23e9a1cea0fe77dda26f90b59216a3fd6

Contents?: true

Size: 347 Bytes

Versions: 791

Compression:

Stored size: 347 Bytes

Contents

module Seahorse
  module Client
    module EventEmitter

      def initialize(*args)
        @listeners = {}
        super
      end

      def emit(event_name, *args, &block)
        @listeners[event_name] ||= []
        @listeners[event_name] << Proc.new
      end

      def signal(event, *args)
        @listeners
      end

    end
  end
end

Version data entries

791 entries across 791 versions & 2 rubygems

Version Path
aws-sdk-core-2.0.25 lib/seahorse/client/events.rb
aws-sdk-core-2.0.24 lib/seahorse/client/events.rb
aws-sdk-core-2.0.23 lib/seahorse/client/events.rb
aws-sdk-core-2.0.22 lib/seahorse/client/events.rb
aws-sdk-core-2.0.21 lib/seahorse/client/events.rb
aws-sdk-core-2.0.20 lib/seahorse/client/events.rb
aws-sdk-core-2.0.19 lib/seahorse/client/events.rb
aws-sdk-core-2.0.18 lib/seahorse/client/events.rb
aws-sdk-core-2.0.17 lib/seahorse/client/events.rb
aws-sdk-core-2.0.16 lib/seahorse/client/events.rb
aws-sdk-core-2.0.15 lib/seahorse/client/events.rb