Class: RuboCop::CommentConfig::DirectiveRange Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Range
|
|
|
Instance Chain:
self,
Range
|
|
| Inherits: |
Range
|
| Defined in: | lib/rubocop/comment_config/directive_range.rb |
Overview
A disabled line range that remembers the directive comment that opened
it. Value-equal to a plain Range, so consumers comparing or hashing
ranges are unaffected.
Class Method Summary
- .new(first_line, last_line, directive) ⇒ DirectiveRange constructor Internal use only
Instance Attribute Summary
- #directive readonly Internal use only
Constructor Details
.new(first_line, last_line, directive) ⇒ DirectiveRange
Instance Attribute Details
#directive (readonly)
[ GitHub ]# File 'lib/rubocop/comment_config/directive_range.rb', line 10
attr_reader :directive