Class: RIO::ZipFile::InFile::FS
- Defined in:
- lib/rio/ext/zipfile/fs.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(zipfile) ⇒ FS
constructor
A new instance of FS.
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.
72 73 74 75 76 77 78 |
# File 'lib/rio/ext/zipfile/fs.rb', line 72 def initialize(zipfile) @zipfile = zipfile @file = RIO::ZipFile::Wrap::File.new(@zipfile.file) @dir = RIO::ZipFile::Wrap::Dir.new(@zipfile.dir) @test = @file #p "InFile: #{@file.class}" end |