IO wrapper that allows writing a limited amount of data
Methods
Attributes
| [R] | limit | Maximum number of bytes that can be written |
| [R] | written | Number of bytes written |
Class Public methods
new(io, limit)
Link
Wraps io and allows up to limit bytes to be
written
Instance Public methods
write(data)
Link
Writes data onto the IO,
raising a FileOverflow exception if the
number of bytes will be more than limit