module Zip::FileSystem

def dir

invoked
object, except it works on the Zip::File on which this method is
Returns a ZipFsDir which is much like ruby's builtin Dir (class)
def dir
  @zip_fs_dir
end

def file

invoked
object, except it works on the Zip::File on which this method is
Returns a ZipFsFile which is much like ruby's builtin File (class)
def file
  @zip_fs_file
end

def initialize # :nodoc:

:nodoc:
def initialize # :nodoc:
  mapped_zip       = ZipFileNameMapper.new(self)
  @zip_fs_dir      = ZipFsDir.new(mapped_zip)
  @zip_fs_file     = ZipFsFile.new(mapped_zip)
  @zip_fs_dir.file = @zip_fs_file
  @zip_fs_file.dir = @zip_fs_dir
end