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.3.3 lib/seahorse/client/events.rb
aws-sdk-core-2.3.2 lib/seahorse/client/events.rb
aws-sdk-core-2.3.1 lib/seahorse/client/events.rb
aws-sdk-core-2.3.0 lib/seahorse/client/events.rb
aws-sdk-core-2.2.37 lib/seahorse/client/events.rb
aws-sdk-core-2.2.36 lib/seahorse/client/events.rb
aws-sdk-core-2.2.35 lib/seahorse/client/events.rb
aws-sdk-core-2.2.34 lib/seahorse/client/events.rb
aws-sdk-core-2.2.33 lib/seahorse/client/events.rb
aws-sdk-core-2.2.32 lib/seahorse/client/events.rb
aws-sdk-core-2.2.31 lib/seahorse/client/events.rb
aws-sdk-core-2.2.30 lib/seahorse/client/events.rb
aws-sdk-core-2.2.29 lib/seahorse/client/events.rb
aws-sdk-core-2.2.28 lib/seahorse/client/events.rb
aws-sdk-core-2.2.27 lib/seahorse/client/events.rb
aws-sdk-core-2.2.26 lib/seahorse/client/events.rb
aws-sdk-core-2.2.25 lib/seahorse/client/events.rb
aws-sdk-core-2.2.24 lib/seahorse/client/events.rb
aws-sdk-core-2.2.23 lib/seahorse/client/events.rb
aws-sdk-core-2.2.22 lib/seahorse/client/events.rb