Class: ImproveYourCode::Report::Formatter::SimpleWarningFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/improve_your_code/report/formatter/simple_warning_formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(warning) ⇒ Object



7
8
9
# File 'lib/improve_your_code/report/formatter/simple_warning_formatter.rb', line 7

def format(warning)
  "#{warning.lines.sort.inspect}:#{warning.base_message}"
end