Class: Rant::Archive::Rubyzip::PassThruCompressor
- Inherits:
-
Compressor
- Object
- Compressor
- Rant::Archive::Rubyzip::PassThruCompressor
- Defined in:
- lib/rant/archive/rubyzip.rb
Overview
:nodoc:all
Instance Attribute Summary collapse
-
#crc ⇒ Object
readonly
Returns the value of attribute crc.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
- #<<(data) ⇒ Object
-
#initialize(outputStream) ⇒ PassThruCompressor
constructor
A new instance of PassThruCompressor.
Methods inherited from Compressor
Constructor Details
#initialize(outputStream) ⇒ PassThruCompressor
Returns a new instance of PassThruCompressor.
739 740 741 742 743 744 |
# File 'lib/rant/archive/rubyzip.rb', line 739 def initialize(outputStream) super() @outputStream = outputStream @crc = Zlib::crc32 @size = 0 end |
Instance Attribute Details
#crc ⇒ Object (readonly)
Returns the value of attribute crc.
753 754 755 |
# File 'lib/rant/archive/rubyzip.rb', line 753 def crc @crc end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
753 754 755 |
# File 'lib/rant/archive/rubyzip.rb', line 753 def size @size end |