Class: DooDah::ZipSizeCalculator
- Inherits:
-
Object
- Object
- DooDah::ZipSizeCalculator
- Defined in:
- lib/doo_dah/zip_size_calculator.rb
Instance Attribute Summary collapse
-
#overhead ⇒ Object
Returns the value of attribute overhead.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
- #add_file(name, size = 0, crc = 0) ⇒ Object
-
#initialize ⇒ ZipSizeCalculator
constructor
A new instance of ZipSizeCalculator.
Constructor Details
#initialize ⇒ ZipSizeCalculator
Returns a new instance of ZipSizeCalculator.
7 8 9 10 |
# File 'lib/doo_dah/zip_size_calculator.rb', line 7 def initialize @overhead = CentralDirectoryHeader.end_of_central_directory_size @size = @overhead end |
Instance Attribute Details
#overhead ⇒ Object
Returns the value of attribute overhead.
5 6 7 |
# File 'lib/doo_dah/zip_size_calculator.rb', line 5 def overhead @overhead end |
#size ⇒ Object
Returns the value of attribute size.
5 6 7 |
# File 'lib/doo_dah/zip_size_calculator.rb', line 5 def size @size end |