Class: Gem::Package::TarWriter::RestrictedStream
- Inherits:
 - 
      Object
      
        
- Object
 - Gem::Package::TarWriter::RestrictedStream
 
 
- Defined in:
 - lib/rubygems/package/tar_writer.rb
 
Overview
IO wrapper that provides only #write
Instance Method Summary collapse
- 
  
    
      #initialize(io)  ⇒ RestrictedStream 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Creates a new RestrictedStream wrapping
io. - 
  
    
      #write(data)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Writes
dataonto the IO. 
Constructor Details
#initialize(io) ⇒ RestrictedStream
Creates a new RestrictedStream wrapping io
      58 59 60  | 
    
      # File 'lib/rubygems/package/tar_writer.rb', line 58 def initialize(io) @io = io end  | 
  
Instance Method Details
#write(data) ⇒ Object
Writes data onto the IO
      65 66 67  | 
    
      # File 'lib/rubygems/package/tar_writer.rb', line 65 def write(data) @io.write data end  |