Method: RuboCop::Cop::Offense#location
- Defined in:
- lib/rubocop/cop/offense.rb
permalink #location ⇒ Parser::Source::Range (readonly)
Returns the location where the violation is detected.
28 29 30 |
# File 'lib/rubocop/cop/offense.rb', line 28 def location @location end |