Class: CC::Workspace::PathTree::FileNode
- Inherits:
-
Object
- Object
- CC::Workspace::PathTree::FileNode
- Defined in:
- lib/cc/workspace/path_tree/file_node.rb
Instance Method Summary collapse
- #add ⇒ Object
- #all_paths ⇒ Object
-
#initialize(root_path) ⇒ FileNode
constructor
A new instance of FileNode.
- #populated? ⇒ Boolean
- #remove ⇒ Object
Constructor Details
#initialize(root_path) ⇒ FileNode
Returns a new instance of FileNode.
5 6 7 |
# File 'lib/cc/workspace/path_tree/file_node.rb', line 5 def initialize(root_path) @root_path = root_path.dup.freeze end |
Instance Method Details
#add ⇒ Object
21 22 23 |
# File 'lib/cc/workspace/path_tree/file_node.rb', line 21 def add(*) # this space intentionally left blank end |
#all_paths ⇒ Object
9 10 11 |
# File 'lib/cc/workspace/path_tree/file_node.rb', line 9 def all_paths [root_path] end |
#populated? ⇒ Boolean
13 14 15 |
# File 'lib/cc/workspace/path_tree/file_node.rb', line 13 def populated? false end |
#remove ⇒ Object
17 18 19 |
# File 'lib/cc/workspace/path_tree/file_node.rb', line 17 def remove(*) # this space intentionally left blank end |