Sha256: d4bf6031bd4c6fd4621760fe4683868051341a233a5c1c87ea14d1c059076699

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module Backport
  class Adapter
    def initialize output
      @out = output
    end

    def opening
      STDERR.puts "Opening"
    end

    def closing
      STDERR.puts "Closing"
    end

    def sending data
      STDERR.puts "Client sent #{data}"
    end

    def write data
      @out.print data
    end

    def write_line data
      @out.puts data
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backport-0.1.0 lib/backport/adapter.rb