class TreeGraph::TopDown

Public Instance Methods

branch() click to toggle source
# File lib/tree_graph.rb, line 70
def branch
  return '' unless parent
  is_last ? '└─' : '├─'
end
tree_graph() click to toggle source
# File lib/tree_graph.rb, line 66
def tree_graph
  levels.join("\n")
end