123456789_123456789_123456789_123456789_123456789_

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

Instance Method Summary

Constructor Details

.new(io) ⇒ RestrictedStream

Creates a new RestrictedStream wrapping io

[ GitHub ]

  
# 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

[ GitHub ]

  
# File 'lib/rubygems/package/tar_writer.rb', line 67

def write(data)
  @io.write data
end