Sha256: 8c74a4ebda8b1d32c46588abacb42c9abadf028af105b2b92059bcb87d81c606

Contents?: true

Size: 217 Bytes

Versions: 22

Compression:

Stored size: 217 Bytes

Contents

module Unipept
  class OutputWriter
    attr_reader :output

    def initialize(file)
      @output = file ? File.open(file, 'a') : $stdout
    end

    def write_line(line)
      @output.write line
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
unipept-3.1.0 lib/output_writer.rb
unipept-3.0.2 lib/output_writer.rb
unipept-3.0.1 lib/output_writer.rb
unipept-3.0.0 lib/output_writer.rb
unipept-2.2.2 lib/output_writer.rb
unipept-2.2.1 lib/output_writer.rb
unipept-2.2.0 lib/output_writer.rb
unipept-2.1.1 lib/output_writer.rb
unipept-2.1.0 lib/output_writer.rb
unipept-2.0.0 lib/output_writer.rb
unipept-1.4.1 lib/output_writer.rb
unipept-1.4.0 lib/output_writer.rb
unipept-1.3.0 lib/output_writer.rb
unipept-1.2.0 lib/output_writer.rb
unipept-1.1.3 lib/output_writer.rb
unipept-1.1.2 lib/output_writer.rb
unipept-1.1.1 lib/output_writer.rb
unipept-1.1.0 lib/output_writer.rb
unipept-1.0.1 lib/output_writer.rb
unipept-1.0.0 lib/output_writer.rb