==================================================================================== = PrivatePlease report : = ==================================================================================== % @candidates_classes_names .sort.each do |class_name| % % show_good_candidates_section = true % show_bad_candidates_section = show_bad_candidates_section? % show_never_candidates_section = show_never_called_candidates_section? % % if show_good_candidates_section % good_candidates_table = table_for( % names_from(class_name, good_candidates , prefix = "#"), % names_from(class_name, good_candidates_c, prefix = ".")) % end % if show_bad_candidates_section % bad_candidates_table = table_for( % names_from(class_name, bad_candidates , prefix = "#"), % names_from(class_name, bad_candidates_c, prefix = ".")) % end % if show_never_candidates_section % never_called_candidates_table = table_for( % names_from(class_name, never_called_candidates , prefix = "#"), % names_from(class_name, never_called_candidates_c, prefix = ".")) % end % % # Always hide empty tables : % ########################### % show_good_candidates_section &&= !good_candidates_table.empty? % show_bad_candidates_section &&= !bad_candidates_table.empty? % show_never_candidates_section &&= !never_called_candidates_table.empty? % % nothing_to_show = !(show_good_candidates_section || show_bad_candidates_section || show_never_candidates_section) % next if nothing_to_show && !show_empty_classes? % <%= class_name %> % % if show_good_candidates_section % t = good_candidates_table * Good candidates : can be made private : ------------------------------------------ % cell_width = 3 + [38, t.longest_value_length].max % t.rows.each do |inst_m, class_m| <%= inst_m && inst_m.ljust(cell_width) %><%= class_m && class_m.ljust(cell_width) %> % end % end % % if show_bad_candidates_section % t = bad_candidates_table * Bad candidates : must stay public/protected: . . . . . . . . . . . . . . . . . . . . . % cell_width = 3 + [38, t.longest_value_length].max % t.rows.each do |inst_m, class_m| <%= inst_m && inst_m.ljust(cell_width) %><%= class_m && class_m.ljust(cell_width) %> % end % end % % if show_never_candidates_section % t = never_called_candidates_table * Methods that were never called : . . . . . . . . . . . . . . . . . . . . . % cell_width = 3 + [38, t.longest_value_length].max % t.rows.each do |inst_m, class_m| <%= inst_m && inst_m.ljust(cell_width) %><%= class_m && class_m.ljust(cell_width) %> % end % end % % end ==================================================================================== % if ENV['PP_OPTIONS'] Default display overriden : $PP_OPTIONS = <%= ENV['PP_OPTIONS'].inspect %> % end