class Spoom::FileTree::Node

A node representing either a file or a directory inside a FileTree

Public Instance Methods

path() click to toggle source
# File lib/spoom/file_tree.rb, line 105
def path
  parent = self.parent
  return name unless parent
  "#{parent.path}/#{name}"
end