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 61
61:     def initialize(io)
62:       @io = io
63:     end

Public Instance methods

Writes data onto the IO

[Source]

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

[Validate]