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
RestrictedStream
wrappingio
Instance Method Summary
-
#write(data)
Writes
data
onto the IO.
Constructor Details
.new(io) ⇒ RestrictedStream
Creates a new RestrictedStream
wrapping io
# File 'lib/rubygems/package/tar_writer.rb', line 64
def initialize(io) @io = io end
Instance Method Details
#write(data)
Writes data
onto the IO
# File 'lib/rubygems/package/tar_writer.rb', line 71
def write(data) @io.write data end