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



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

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