category_tree.rb
# Print out the whole CategoryTree (pre-order)
Print out the whole CategoryTree (pre-order)
Print out the whole CategoryTree ( pre - order )
def print_tree
    puts "\nPrinting CategoryTree..."
    if @root.nil?
      puts 'The tree is EMPTY!'
    else
      @root.print_node
    end
  end
def print_tree puts "\nPrinting CategoryTree..." if @root . nil? puts 'The tree is EMPTY!' else @root . print_node end end
Print out the whole CategoryTree (pre-order)
Print out the whole CategoryTree ( pre - order )