Method: RuboCop::Cop::Offense#column_length

Defined in:
lib/rubocop/cop/offense.rb

#column_lengthObject

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.

[View source]

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