Method: RuboCop::Cop::Offense#real_column
- Defined in:
- lib/rubocop/cop/offense.rb
permalink #real_column ⇒ 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.
Internally we use column number that start at 0, but when outputting column numbers, we want them to start at 1. One reason is that editors, such as Emacs, expect this.
202 203 204 |
# File 'lib/rubocop/cop/offense.rb', line 202 def real_column column + 1 end |