Class: Treedent::FormattedOutput
- Inherits:
-
Struct
- Object
- Struct
- Treedent::FormattedOutput
- Defined in:
- lib/treedent/formatted_output.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
Instance Method Summary collapse
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input
2 3 4 |
# File 'lib/treedent/formatted_output.rb', line 2 def input @input end |
Instance Method Details
#to_s ⇒ Object
4 5 6 |
# File 'lib/treedent/formatted_output.rb', line 4 def to_s tree.map { |node| NodeDrawing.new(node).to_s }.join end |