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

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

Instance Method Summary collapse

Constructor Details

#initialize(root_path) ⇒ FileNode

Returns a new instance of FileNode.



88
89
90
# File 'lib/cc/workspace/path_tree.rb', line 88

def initialize(root_path)
  @root_path = root_path.dup.freeze
end

Instance Method Details

#addObject



104
105
106
# File 'lib/cc/workspace/path_tree.rb', line 104

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

#all_pathsObject



92
93
94
# File 'lib/cc/workspace/path_tree.rb', line 92

def all_paths
  [@root_path]
end

#populated?Boolean

Returns:

  • (Boolean)


96
97
98
# File 'lib/cc/workspace/path_tree.rb', line 96

def populated?
  false
end

#removeObject



100
101
102
# File 'lib/cc/workspace/path_tree.rb', line 100

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