Method: RuboCop::Cop::Offense#column_length
- Defined in:
- lib/rubocop/cop/offense.rb
permalink #column_length ⇒ 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.
169 170 171 172 173 174 175 |
# File 'lib/rubocop/cop/offense.rb', line 169 def column_length if first_line == last_line column_range.count else source_line.length - column end end |