class VirtFS::NativeFS::Thin

Attributes

mount_point[RW]
name[RW]

Public Class Methods

new(root = VfsRealFile::SEPARATOR) click to toggle source
# File lib/virtfs/nativefs/thin.rb, line 13
def initialize(root = VfsRealFile::SEPARATOR)
  @mount_point = nil
  @name        = self.class.name
  @root        = root
end

Public Instance Methods

thin_interface?() click to toggle source
# File lib/virtfs/nativefs/thin.rb, line 19
def thin_interface?
  true
end
umount() click to toggle source
# File lib/virtfs/nativefs/thin.rb, line 23
def umount
  @mount_point = nil
end

Private Instance Methods

apply_root(path) click to toggle source
# File lib/virtfs/nativefs/thin.rb, line 27
def apply_root(path)
  VfsRealFile.join(@root, path)
end