Class: FileSystem::MockFileSystem::MockRoot

Inherits:
MockDir
  • Object
show all
Defined in:
lib/filesystem.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes included from Node

#mtime, #name, #parent, #permissions

Instance Method Summary collapse

Methods inherited from MockDir

#[]=, #delete, #entries, #fill_dir, #fill_path, #initialize, #mkdir

Constructor Details

This class inherits a constructor from FileSystem::MockFileSystem::MockDir

Instance Method Details

#get_node(dirname) ⇒ Object



304
305
306
307
308
309
310
# File 'lib/filesystem.rb', line 304

def get_node( dirname )
	begin
		super( Path.new( dirname ).absolute.strip )
	rescue Errno::ENOENT
		raise Errno::ENOENT.new( dirname )
	end
end