Method: RuboCop::Cop::Offense#highlighted_area

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

#highlighted_areaParser::Source::Range

Returns the range of the code that is highlighted.

Returns:

  • (Parser::Source::Range)

    the range of the code that is highlighted

[View source]

141
142
143
# File 'lib/rubocop/cop/offense.rb', line 141

def highlighted_area
  Parser::Source::Range.new(source_line, column, column + column_length)
end