Class: MiniTarball::WriteOnlyStream
- Inherits:
-
Object
- Object
- MiniTarball::WriteOnlyStream
- Defined in:
- lib/mini_tarball/streams/write_only_stream.rb
Instance Method Summary collapse
-
#initialize(io) ⇒ WriteOnlyStream
constructor
A new instance of WriteOnlyStream.
- #write(data) ⇒ Object
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 |