Class: Zip::ZipCentralDirectory

### Home Classes Methods

### In Files

- lib/zip/zip_central_directory.rb

### Parent

Object

### Methods

- #each
- #entries
- #size

### Included Modules

- Enumerable

### Class/Module Index

Quicksearch

- Zip
- Zip::ZipCentralDirectory
- Zip::ZipCompressionMethodError
- Zip::ZipDestinationFileExistsError
- Zip::ZipEntry
- Zip::ZipEntryExistsError
- Zip::ZipEntryNameError
- Zip::ZipError
- Zip::ZipExtraField
- Zip::ZipExtraField::Generic
- Zip::ZipExtraField::IUnix
- Zip::ZipExtraField::UniversalTime
- Zip::ZipFile
- Zip::ZipFileSystem
- Zip::ZipFileSystem::ZipFsDir
- Zip::ZipFileSystem::ZipFsFile
- Zip::ZipFileSystem::ZipFsFile::ZipFsStat
- Zip::ZipInputStream
- Zip::ZipInternalError
- Zip::ZipOutputStream
- Zip::ZipStreamableDirectory
- Zip::ZipStreamableStream
- IOExtras
- IOExtras::AbstractInputStream
- IOExtras::AbstractOutputStream
- IOExtras::FakeIO
- BugFix
- Object

No matching classes.

# Zip::ZipCentralDirectory

### Constants

END_OF_CENTRAL_DIRECTORY_SIGNATURE
MAX_END_OF_CENTRAL_DIRECTORY_STRUCTURE_SIZE
STATIC_EOCD_SIZE

### Attributes

comment[R]

### Public Instance Methods

each(&proc) click to toggle source

For iterating over the entries.

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

entries() click to toggle source

Returns an Enumerable containing the entries.

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

size() click to toggle source

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

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.