Class: Zip::NullCompressor

Inherits:
Compressor show all
Includes:
Singleton
Defined in:
lib/zip/null_compressor.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.



11
12
13
# File 'lib/zip/null_compressor.rb', line 11

def compressed_size
  @compressed_size
end

#sizeObject (readonly)

Returns the value of attribute size.



11
12
13
# File 'lib/zip/null_compressor.rb', line 11

def size
  @size
end

Instance Method Details

#<<(_data) ⇒ Object

Raises:

  • (IOError)


7
8
9
# File 'lib/zip/null_compressor.rb', line 7

def <<(_data)
  raise IOError, 'closed stream'
end