Class: Treedent::FormattedOutput

Inherits:
Struct
  • Object
show all
Defined in:
lib/treedent/formatted_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



2
3
4
# File 'lib/treedent/formatted_output.rb', line 2

def input
  @input
end

Instance Method Details

#to_sObject



4
5
6
# File 'lib/treedent/formatted_output.rb', line 4

def to_s
  tree.map { |node| NodeDrawing.new(node).to_s }.join
end