Sha256: d68b059543d9d3fc1d8e8c369d2b82b290aa04dd7dbb66fc74abaedb81ff1085

Contents?: true

Size: 339 Bytes

Versions: 12

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module Pakyow
  class Logger
    class Multiplexed
      attr_reader :destinations

      def initialize(*destinations)
        @destinations = destinations
      end

      def call(entry)
        @destinations.each do |destination|
          destination.call(entry)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pakyow-core-1.0.6 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.5 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.4 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.3 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.2 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.1 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.0 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.0.rc5 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.0.rc4 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.0.rc3 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.0.rc2 lib/pakyow/logger/multiplexed.rb
pakyow-core-1.0.0.rc1 lib/pakyow/logger/multiplexed.rb