Class: AdLint::LineWiseMessageSuppressionSpecifier
- Inherits:
-
MessageSuppressionSpecifier
- Object
- Annotation
- MessageSuppressionSpecifier
- AdLint::LineWiseMessageSuppressionSpecifier
- Defined in:
- lib/adlint/annot.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create_suppressor ⇒ Object
- #file_wise? ⇒ Boolean
-
#initialize(loc, trailer) ⇒ LineWiseMessageSuppressionSpecifier
constructor
A new instance of LineWiseMessageSuppressionSpecifier.
- #line_wise? ⇒ Boolean
Methods inherited from MessageSuppressionSpecifier
#message_suppression_specifier?
Methods inherited from Annotation
#message_suppression_specifier?
Constructor Details
#initialize(loc, trailer) ⇒ LineWiseMessageSuppressionSpecifier
132 133 134 |
# File 'lib/adlint/annot.rb', line 132 def initialize(loc, trailer) super(loc, (trailer)) end |
Class Method Details
.parse(str, loc) ⇒ Object
128 129 130 |
# File 'lib/adlint/annot.rb', line 128 def self.parse(str, loc) str =~ /ADLINT:SL(:.*)\z/m ? new(loc, $1) : nil end |
Instance Method Details
#create_suppressor ⇒ Object
144 145 146 |
# File 'lib/adlint/annot.rb', line 144 def create_suppressor LineWiseMessageSuppressor.new(@message_ids, @location) end |
#file_wise? ⇒ Boolean
136 137 138 |
# File 'lib/adlint/annot.rb', line 136 def file_wise? false end |
#line_wise? ⇒ Boolean
140 141 142 |
# File 'lib/adlint/annot.rb', line 140 def line_wise? true end |