Class: Zip::NullCompressor

Inherits:
Compressor show all
Includes:
Singleton
Defined in:
lib/zip/zip.rb

Overview

:nodoc:all

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Compressor

#finish

Instance Attribute Details

#compressed_sizeObject (readonly)

Returns the value of attribute compressed_size.



1065
1066
1067
# File 'lib/zip/zip.rb', line 1065

def compressed_size
  @compressed_size
end

#sizeObject (readonly)

Returns the value of attribute size.



1065
1066
1067
# File 'lib/zip/zip.rb', line 1065

def size
  @size
end

Instance Method Details

#<<(data) ⇒ Object

Raises:

  • (IOError)


1061
1062
1063
# File 'lib/zip/zip.rb', line 1061

def << (data)
  raise IOError, "closed stream"
end