Class: TestFs::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/test_fs/node.rb

Overview

:nodoc:

Direct Known Subclasses

Directory, File

Instance Method Summary collapse

Constructor Details

#initialize(root_path, name) ⇒ Node

Returns a new instance of Node.



4
5
6
7
# File 'lib/test_fs/node.rb', line 4

def initialize(root_path, name)
  @root_path = root_path
  @name      = name
end

Instance Method Details

#pathObject



9
10
11
# File 'lib/test_fs/node.rb', line 9

def path
  "#{@root_path}/#{@name}"
end