Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v5.2.3) is shown here.
display(results, options = {})
public
Prints the mapping from filenames to annotations in results
ordered by filename. The options hash is passed to each
annotation’s to_s.
# File railties/lib/rails/source_annotation_extractor.rb, line 131
def display(results, options = {})
options[:indent] = results.flat_map { |f, a| a.map(&:line) }.max.to_s.size
results.keys.sort.each do |file|
puts "#{file}:"
results[file].each do |note|
puts " * #{note.to_s(options)}"
end
puts
end
end