Class: AdLint::Postfilter::FileWiseSuppression
- Inherits:
-
MessageWiseSuppression
- Object
- MessageSuppression
- MessageWiseSuppression
- AdLint::Postfilter::FileWiseSuppression
- Includes:
- Deactivatable
- Defined in:
- lib/adlint/postfilter/suppress.rb
Instance Attribute Summary collapse
-
#fpath ⇒ Object
readonly
Returns the value of attribute fpath.
Attributes included from Deactivatable
Attributes inherited from MessageWiseSuppression
Instance Method Summary collapse
- #_match_with?(message_line) ⇒ Boolean
-
#initialize(message_id, fpath, active) ⇒ FileWiseSuppression
constructor
A new instance of FileWiseSuppression.
Methods included from Deactivatable
Constructor Details
#initialize(message_id, fpath, active) ⇒ FileWiseSuppression
Returns a new instance of FileWiseSuppression.
88 89 90 91 92 |
# File 'lib/adlint/postfilter/suppress.rb', line 88 def initialize(, fpath, active) super() @fpath = fpath self.active = active end |
Instance Attribute Details
#fpath ⇒ Object (readonly)
Returns the value of attribute fpath.
94 95 96 |
# File 'lib/adlint/postfilter/suppress.rb', line 94 def fpath @fpath end |
Instance Method Details
#_match_with?(message_line) ⇒ Boolean
96 97 98 99 100 101 102 |
# File 'lib/adlint/postfilter/suppress.rb', line 96 def _match_with?() if self.active? super && .fpath == @fpath else false end end |