Class: VirtFS::NativeFS::Thick

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

Overview

rubocop:disable Style/ClassAndModuleChildren

Defined Under Namespace

Modules: DirClassMethods, FileClassMethods

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) ⇒ Thick

Returns a new instance of Thick.



11
12
13
14
15
# File 'lib/virtfs/nativefs/thick.rb', line 11

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.



6
7
8
# File 'lib/virtfs/nativefs/thick.rb', line 6

def mount_point
  @mount_point
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/virtfs/nativefs/thick.rb', line 6

def name
  @name
end

Instance Method Details

#thin_interface?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/virtfs/nativefs/thick.rb', line 17

def thin_interface?
  false
end

#umountObject



21
22
23
# File 'lib/virtfs/nativefs/thick.rb', line 21

def umount
  @mount_point = nil
end