Class: OutlinePrinter
Instance Method Summary collapse
Methods inherited from Printer
#do_finish, #do_prepare, #do_print, #initialize, #method_missing, #print_document
Constructor Details
This class inherits a constructor from Printer
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Printer
Instance Method Details
#print(node) ⇒ Object
448 449 450 451 452 453 454 |
# File 'lib/rest.rb', line 448 def print node node.level.times do printf " " end puts "#{node.level} #{node.class}" node.print_children self end |
#print_section(node) ⇒ Object
456 457 458 |
# File 'lib/rest.rb', line 456 def print_section node print node end |