Public Class Methods

Public Instance Methods

write(data)click to toggle source

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

# File lib/rubygems/package/tar_writer.rb, line 43defwrite(data)
ifdata.bytesize+@written>@limitraiseFileOverflow, "You tried to feed more data than fits in the file."end@io.writedata@written+=data.bytesizedata.bytesizeend