Class: VirtFS::NativeFS::Thin

Inherits:
Object
  • Object
show all
Includes:
DirClassMethods, FileClassMethods
Defined in:
lib/virtfs/nativefs/thin/dir_class_methods.rb,
lib/virtfs/nativefs/thin.rb,
lib/virtfs/nativefs/thin/dir.rb,
lib/virtfs/nativefs/thin/file.rb,
lib/virtfs/nativefs/thin/file_class_methods.rb

Overview

rubocop:disable Style/ClassAndModuleChildren

Defined Under Namespace

Modules: DirClassMethods, FileClassMethods Classes: Dir, File

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DirClassMethods

#dir_delete, #dir_entries, #dir_exist?, #dir_foreach, #dir_mkdir, #dir_new

Methods included from FileClassMethods

#file_atime, #file_blockdev?, #file_chardev?, #file_chmod, #file_chown, #file_ctime, #file_delete, #file_directory?, #file_executable?, #file_executable_real?, #file_exist?, #file_file?, #file_ftype, #file_grpowned?, #file_identical?, #file_lchmod, #file_lchown, #file_link, #file_lstat, #file_mtime, #file_new, #file_owned?, #file_pipe?, #file_readable?, #file_readable_real?, #file_readlink, #file_rename, #file_setgid?, #file_setuid?, #file_size, #file_socket?, #file_stat, #file_sticky?, #file_symlink, #file_symlink?, #file_truncate, #file_utime, #file_world_readable?, #file_world_writable?, #file_writable?, #file_writable_real?

Constructor Details

#initialize(root = VfsRealFile::SEPARATOR) ⇒ Thin

Returns a new instance of Thin.



13
14
15
16
17
# File 'lib/virtfs/nativefs/thin.rb', line 13

def initialize(root = VfsRealFile::SEPARATOR)
  @mount_point = nil
  @name        = self.class.name
  @root        = root
end

Instance Attribute Details

#mount_pointObject

Returns the value of attribute mount_point.



8
9
10
# File 'lib/virtfs/nativefs/thin.rb', line 8

def mount_point
  @mount_point
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/virtfs/nativefs/thin.rb', line 8

def name
  @name
end

Instance Method Details

#thin_interface?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/virtfs/nativefs/thin.rb', line 19

def thin_interface?
  true
end

#umountObject



23
24
25
# File 'lib/virtfs/nativefs/thin.rb', line 23

def umount
  @mount_point = nil
end