Class Gem::Package::TarWriter::RestrictedStream
In: lib/rubygems/package/tar_writer.rb
Parent: Object

IO wrapper that provides only write

Methods

new   write  

Public Class methods

Creates a new RestrictedStream wrapping io

[Source]

    # File lib/rubygems/package/tar_writer.rb, line 60
60:     def initialize(io)
61:       @io = io
62:     end

Public Instance methods

Writes data onto the IO

[Source]

    # File lib/rubygems/package/tar_writer.rb, line 67
67:     def write(data)
68:       @io.write data
69:     end

[Validate]