Module: Reek::Report::DefaultLocationFormatter
- Defined in:
- lib/reek/report/location_formatter.rb
Overview
Formats the location of a warning as an array of line numbers.
Class Method Summary collapse
Instance Method Summary collapse
- #format(warning) ⇒ Object private
Class Method Details
.format(warning) ⇒ Object
22 23 24 |
# File 'lib/reek/report/location_formatter.rb', line 22 def format(warning) "#{warning.lines.sort.inspect}:" end |
Instance Method Details
#format(warning) ⇒ Object (private)
22 23 24 |
# File 'lib/reek/report/location_formatter.rb', line 22 def format(warning) "#{warning.lines.sort.inspect}:" end |