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

IO wrapper that allows writing a limited amount of data

Methods

new   write  

Attributes

limit  [R]  Maximum number of bytes that can be written
written  [R]  Number of bytes written

Public Class methods

Wraps io and allows up to limit bytes to be written

Public Instance methods

Writes data onto the IO, raising a FileOverflow exception if the number of bytes will be more than limit

[Validate]