Sha256: 2eaba737b42a9398457c7184b8061c4ce14955e5ae30252e4f18a6b07348c98d

Contents?: true

Size: 259 Bytes

Versions: 12

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

module Pakyow
  class Logger
    class Destination
      attr_reader :name, :io

      def initialize(name, io)
        @name, @io = name, io
      end

      def call(entry)
        @io.write(entry)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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