Class: Zip::ZipFileSystem::ZipFsFile::ZipFsStat

### Home Classes Methods

### In Files

- lib/zip/zipfilesystem.rb

### Parent

Object

### Methods

- ::delegate_to_fs_file
- ::new
- #blksize
- #blocks
- #dev
- #ftype
- #gid
- #ino
- #kind_of?
- #mode
- #nlink
- #rdev
- #rdev_major
- #rdev_minor
- #uid

### 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::ZipFileSystem::ZipFsFile::ZipFsStat

protected :dir

### Public Class Methods

delegate_to_fs_file(*methods) click to toggle source

    # File lib/zip/zipfilesystem.rb, line 76
    def delegate_to_fs_file(*methods)
      methods.each do |method|
        self.class_eval                 def #{method}                      # def file?                  @zipFsFile.#{method}(@entryName) #   @zipFsFile.file?(@entryName)                end                                # end, __FILE__, __LINE__ + 1
      end
    end

new(zipFsFile, entryName) click to toggle source

    # File lib/zip/zipfilesystem.rb, line 88
    def initialize(zipFsFile, entryName)
      @zipFsFile = zipFsFile
      @entryName = entryName
    end

### Public Instance Methods

blksize() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 149
    def blksize; nil; end

blocks() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 102
    def blocks; nil; end

dev() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 129
    def dev; 0; end

ftype() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 137
    def ftype
      if file?
        return "file"
      elsif directory?
        return "directory"
      else
        raise StandardError, "Unknown file type"
      end
    end

gid() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 109
    def gid
      e = get_entry
      if e.extra.member? "IUnix"
        e.extra["IUnix"].gid || 0
      else
        0
      end
    end

ino() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 127
    def ino; 0; end

kind_of?(t) click to toggle source

    # File lib/zip/zipfilesystem.rb, line 93
    def kind_of?(t)
      super || t == ::File::Stat
    end

mode() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 151
    def mode
      e = get_entry
      if e.fstype == 3
        e.externalFileAttributes >> 16
      else
        33206 # 33206 is equivalent to -rw-rw-rw-
      end
    end

nlink() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 147
    def nlink; 1; end

rdev() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 131
    def rdev; 0; end

rdev_major() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 133
    def rdev_major; 0; end

rdev_minor() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 135
    def rdev_minor; 0; end

uid() click to toggle source

    # File lib/zip/zipfilesystem.rb, line 118
    def uid
      e = get_entry
      if e.extra.member? "IUnix"
        e.extra["IUnix"].uid || 0
      else
        0
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.