def print_undocumented_objects
return if !@undoc_list || @undoc_list.empty?
puts
puts "Undocumented Objects:"
objects = @undoc_list.sort_by {|o| o.file }
max = objects.sort_by {|o| o.path.length }.last.path.length
if @compact
objects.each do |object|
puts("%-#{max}s (%s)" % [object.path,
[object.file, object.line].compact.join(":")])
end
else
last_file = nil
objects.each do |object|
if object.file != last_file
puts
puts "(in file: #{object.file})"
end
puts object.path
last_file = object.file
end
end
end