class GZippedTar::Tar::RestrictedStream
IO wrapper that provides only write
Public Class Methods
new(io)
click to toggle source
Creates a new RestrictedStream
wrapping io
# File lib/gzipped_tar/tar/restricted_stream.rb, line 13 def initialize(io) @io = io end
Public Instance Methods
write(data)
click to toggle source
Writes data
onto the IO
# File lib/gzipped_tar/tar/restricted_stream.rb, line 18 def write(data) @io.write data end