Skip to Content Skip to Search

IO wrapper that provides only write

Methods
N
W

Class Public methods

new(io)

Creates a new RestrictedStream wrapping io

# File ruby/lib/rubygems/package/tar_writer.rb, line 60
def initialize(io)
  @io = io
end

Instance Public methods

write(data)

Writes data onto the IO

# File ruby/lib/rubygems/package/tar_writer.rb, line 67
def write(data)
  @io.write data
end