Method: RuboCop::Cop::Offense#to_s
- Defined in:
- lib/rubocop/cop/offense.rb
permalink #to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This is just for debugging purpose.
147 148 149 150 151 |
# File 'lib/rubocop/cop/offense.rb', line 147 def to_s format('%<severity>s:%3<line>d:%3<column>d: %<message>s', severity: severity.code, line: line, column: real_column, message: ) end |