Class: MiniTarball::WriteOnlyStream

Inherits:
Object
  • Object
show all
Defined in:
lib/mini_tarball/streams/write_only_stream.rb

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ WriteOnlyStream

Returns a new instance of WriteOnlyStream.



5
6
7
# File 'lib/mini_tarball/streams/write_only_stream.rb', line 5

def initialize(io)
  @io = io
end

Instance Method Details

#write(data) ⇒ Object



9
10
11
# File 'lib/mini_tarball/streams/write_only_stream.rb', line 9

def write(data)
  @io.write(data)
end