Method: CC::Workspace::PathTree.node_for_pathname

Defined in:
lib/cc/workspace/path_tree.rb

.node_for_pathname(pathname) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/cc/workspace/path_tree.rb', line 10

def self.node_for_pathname(pathname)
  if pathname.directory?
    DirNode.new(pathname.to_s)
  else
    FileNode.new(pathname.to_s)
  end
end