Class: RIO::ZipFile::InFile::FS

Inherits:
Object
  • Object
show all
Includes:
FS::Dir, FS::File, FS::Str, FS::Test
Defined in:
lib/rio/ext/zipfile/fs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FS::Str

#basename, #cleanpath, #dirname, #extname, #fnmatch?, #join

Methods included from FS::Test

#blockdev?, #chardev?, #dir?, #directory?, #executable?, #executable_real?, #exist?, #file?, #grpowned?, #owned?, #pipe?, #readable?, #readable_real?, #setgid?, #setuid?, #size, #size?, #socket?, #sticky?, #symlink?, #writable?, #writable_real?, #zero?

Methods included from FS::Dir

#chdir, #entries, #foreach, #getwd, #glob, #mkdir, #pwd, #rmdir

Methods included from FS::File

#atime, #chmod, #chown, #ctime, #expand_path, #ftype, #lstat, #mtime, #readlink, #stat, #symlink, #truncate

Constructor Details

#initialize(zipfile) ⇒ FS

Returns a new instance of FS.



61
62
63
64
65
66
# File 'lib/rio/ext/zipfile/fs.rb', line 61

def initialize(zipfile)
  @zipfile = zipfile
  @file = RIO::ZipFile::Wrap::File.new(@zipfile.file)
  @dir = RIO::ZipFile::Wrap::Dir.new(@zipfile.dir)
  @test = @file
end

Instance Attribute Details

#dirObject (readonly)

Returns the value of attribute dir.



60
61
62
# File 'lib/rio/ext/zipfile/fs.rb', line 60

def dir
  @dir
end

#fileObject (readonly)

Returns the value of attribute file.



60
61
62
# File 'lib/rio/ext/zipfile/fs.rb', line 60

def file
  @file
end