class Minitar::Writer::WriteOnlyStream

A stream wrapper that can only be written to. Any attempt to read from this restricted stream will result in a NameError being thrown.

Public Class Methods

new(io) click to toggle source
# File lib/minitar/writer.rb, line 11
def initialize(io)
  @io = io
end

Public Instance Methods

write(data) click to toggle source
# File lib/minitar/writer.rb, line 15
def write(data)
  @io.write(data)
end