Class Zip::ZipCentralDirectory
In: lib/zip/zip.rb
Parent: Object

Methods

each   entries   size  

Included Modules

Enumerable

Constants

END_OF_CENTRAL_DIRECTORY_SIGNATURE = 0x06054b50
MAX_END_OF_CENTRAL_DIRECTORY_STRUCTURE_SIZE = 65536 + 18
STATIC_EOCD_SIZE = 22

Attributes

comment  [R] 

Public Instance methods

For iterating over the entries.

[Source]

# File lib/zip/zip.rb, line 1296
    def  eacheach(&proc)
      @entrySet.each(&proc)
    end

Returns an Enumerable containing the entries.

[Source]

# File lib/zip/zip.rb, line 1198
    def entries
      @entrySet.entries
    end

Returns the number of entries in the central directory (and consequently in the zip archive).

[Source]

# File lib/zip/zip.rb, line 1302
    def size
      @entrySet.size
    end

[Validate]