instance method
display
Ruby on Rails 4.1.16
Since v2.2.3 Last seen in v5.2.8.1Signature
display(results, options={})
Prints the mapping from filenames to annotations in results ordered by filename. The options hash is passed to each annotation’s to_s.
Parameters
-
resultsreq -
optionsopt = {}
Source
# File railties/lib/rails/source_annotation_extractor.rb, line 117
def display(results, options={})
options[:indent] = results.map { |f, a| a.map(&:line) }.flatten.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
Defined in railties/lib/rails/source_annotation_extractor.rb line 117
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in SourceAnnotationExtractor