Class: Mustermann::Visualizer::Tree

Inherits:
Object
  • Object
show all
Defined in:
lib/mustermann/visualizer/tree.rb

Overview

Represents a (sub)tree and at the same time a node in the tree.

Instance Method Summary collapse

Instance Method Details

#to_sString

Renders the tree.

Returns:

  • (String)

    rendered version of the tree



30
31
32
# File 'lib/mustermann/visualizer/tree.rb', line 30

def to_s
  render("", "", line_widths.max)
end