Class: Gem::Package::TarWriter::RestrictedStream
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/rubygems/package/tar_writer.rb |
Overview
IO wrapper that provides only #write
Class Method Summary
-
.new(io) ⇒ RestrictedStream
constructor
Creates a new
RestrictedStreamwrappingio
Instance Method Summary
-
#write(data)
Writes
dataonto the IO.
Constructor Details
.new(io) ⇒ RestrictedStream
Creates a new RestrictedStream wrapping io
# File 'lib/rubygems/package/tar_writer.rb', line 60
def initialize(io) @io = io end
Instance Method Details
#write(data)
Writes data onto the IO
# File 'lib/rubygems/package/tar_writer.rb', line 67
def write(data) @io.write data end