class Gem::Package::TarWriter::RestrictedStream
IO
wrapper that provides only write
Public Class Methods
Creates a new RestrictedStream
wrapping io
# File lib/rubygems/package/tar_writer.rb, line 60 def initialize(io) @io = io end
Public Instance Methods
Writes data
onto the IO
# File lib/rubygems/package/tar_writer.rb, line 67 def write(data) @io.write data end