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

- (Object) compressed_size (readonly)

Returns the value of attribute compressed_size



1092
1093
1094
# File 'lib/zip/zip.rb', line 1092

def compressed_size
  @compressed_size
end

- (Object) size (readonly)

Returns the value of attribute size



1092
1093
1094
# File 'lib/zip/zip.rb', line 1092

def size
  @size
end

Instance Method Details

- (Object) <<(data)

Raises:

  • (IOError)


1088
1089
1090
# File 'lib/zip/zip.rb', line 1088

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