Sha256: 51b32ad5f86b0ad351b4693b92769017cb663839a81d2086c1e00980e928346f

Contents?: true

Size: 420 Bytes

Versions: 97

Compression:

Stored size: 420 Bytes

Contents

module CC
  module Analyzer
    class CompositeContainerListener < ContainerListener
      def initialize(*listeners)
        @listeners = listeners
      end

      def started(*args)
        listeners.each { |listener| listener.started(*args) }
      end

      def finished(*args)
        listeners.each { |listener| listener.finished(*args) }
      end

      private

      attr_reader :listeners
    end
  end
end

Version data entries

97 entries across 97 versions & 2 rubygems

Version Path
codeclimate-0.78.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.77.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.76.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.75.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.74.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.73.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.72.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.71.2 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.71.1 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.71.0 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.70.6 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.70.5 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.70.4 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.70.3 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.70.2 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.70.1 lib/cc/analyzer/composite_container_listener.rb
codeclimate-0.70.0 lib/cc/analyzer/composite_container_listener.rb