Class: Gem::Package::TarWriter::RestrictedStream

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/package/tar_writer.rb

Overview

IO wrapper that provides only #write

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ RestrictedStream

Creates a new RestrictedStream wrapping io



60
61
62
# File 'lib/rubygems/package/tar_writer.rb', line 60

def initialize(io)
  @io = io
end

Instance Method Details

#write(data) ⇒ Object

Writes data onto the IO



67
68
69
# File 'lib/rubygems/package/tar_writer.rb', line 67

def write(data)
  @io.write data
end