Class: CC::Workspace::PathTree::FileNode

Inherits:
Object
  • Object
show all
Defined in:
lib/cc/workspace/path_tree/file_node.rb

Instance Method Summary collapse

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

#addObject



21
22
23
# File 'lib/cc/workspace/path_tree/file_node.rb', line 21

def add(*)
  # this space intentionally left blank
end

#all_pathsObject



9
10
11
# File 'lib/cc/workspace/path_tree/file_node.rb', line 9

def all_paths
  [root_path]
end

#populated?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/cc/workspace/path_tree/file_node.rb', line 13

def populated?
  false
end

#removeObject



17
18
19
# File 'lib/cc/workspace/path_tree/file_node.rb', line 17

def remove(*)
  # this space intentionally left blank
end