Class: TestFs::Node
- Inherits:
-
Object
- Object
- TestFs::Node
- Defined in:
- lib/test_fs/node.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(root_path, name) ⇒ Node
constructor
A new instance of Node.
- #path ⇒ Object
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
#path ⇒ Object
9 10 11 |
# File 'lib/test_fs/node.rb', line 9 def path "#{@root_path}/#{@name}" end |