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.2.0 lib/seahorse/client/events.rb
aws-sdk-core-2.1.36 lib/seahorse/client/events.rb
aws-sdk-core-2.1.35 lib/seahorse/client/events.rb
aws-sdk-core-2.1.34 lib/seahorse/client/events.rb
aws-sdk-core-2.1.33 lib/seahorse/client/events.rb
aws-sdk-core-2.1.32 lib/seahorse/client/events.rb
aws-sdk-core-2.1.31 lib/seahorse/client/events.rb
aws-sdk-core-2.1.30 lib/seahorse/client/events.rb
aws-sdk-core-2.1.29 lib/seahorse/client/events.rb
aws-sdk-core-2.1.28 lib/seahorse/client/events.rb
aws-sdk-core-2.1.27 lib/seahorse/client/events.rb
aws-sdk-core-2.1.26 lib/seahorse/client/events.rb
aws-sdk-core-2.1.25 lib/seahorse/client/events.rb
aws-sdk-core-2.1.24 lib/seahorse/client/events.rb
aws-sdk-core-2.1.23 lib/seahorse/client/events.rb
aws-sdk-core-2.1.22 lib/seahorse/client/events.rb
aws-sdk-core-2.1.21 lib/seahorse/client/events.rb
aws-sdk-core-2.1.20 lib/seahorse/client/events.rb
aws-sdk-core-2.1.19 lib/seahorse/client/events.rb
aws-sdk-core-2.1.18 lib/seahorse/client/events.rb