Archive::Tar::Minitar::Writer::RestrictedStream
A RestrictedStream that also has a size limit.
The maximum number of bytes that may be written to this data stream.
The current total number of bytes written to this data stream.
# File lib/archive/tar/minitar.rb, line 272 272: def initialize(io, limit) 273: @io = io 274: @limit = limit 275: @written = 0 276: end
# File lib/archive/tar/minitar.rb, line 278 278: def write(data) 279: raise FileOverflow if (data.size + @written) > @limit 280: @io.write(data) 281: @written += data.size 282: data.size 283: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.