Class: Spoom::FileTree::Node
- Inherits:
-
T::Struct
- Object
- T::Struct
- Spoom::FileTree::Node
- Extended by:
- T::Sig
- Defined in:
- lib/spoom/file_tree.rb
Overview
A node representing either a file or a directory inside a FileTree
Instance Method Summary collapse
Instance Method Details
#path ⇒ Object
92 93 94 95 96 97 |
# File 'lib/spoom/file_tree.rb', line 92 def path parent = self.parent return name unless parent "#{parent.path}/#{name}" end |