Module: Zip::ZipFileSystem

Included in:
ZipFile
Defined in:
lib/zip/zipfilesystem.rb

Defined Under Namespace

Classes: ZipFileNameMapper, ZipFsDir, ZipFsDirIterator, ZipFsFile

Instance Method Summary collapse

Instance Method Details

#dirObject



14
15
16
# File 'lib/zip/zipfilesystem.rb', line 14

def dir
  @zipFsDir
end

#fileObject



18
19
20
# File 'lib/zip/zipfilesystem.rb', line 18

def file
  @zipFsFile
end

#initializeObject



6
7
8
9
10
11
12
# File 'lib/zip/zipfilesystem.rb', line 6

def initialize
  mappedZip = ZipFileNameMapper.new(self)
  @zipFsDir  = ZipFsDir.new(mappedZip)
  @zipFsFile = ZipFsFile.new(mappedZip)
  @zipFsDir.file = @zipFsFile
  @zipFsFile.dir = @zipFsDir
end