Method: RuboCop::Cop::Offense#location

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

#locationParser::Source::Range (readonly)

Returns the location where the violation is detected.

Returns:

  • (Parser::Source::Range)

    the location where the violation is detected.

See Also:

[View source]

28
29
30
# File 'lib/rubocop/cop/offense.rb', line 28

def location
  @location
end