Class: AdLint::Postfilter::PlatformHeaderSuppression
- Inherits:
-
MessageSuppression
- Object
- MessageSuppression
- AdLint::Postfilter::PlatformHeaderSuppression
- Defined in:
- lib/adlint/postfilter/suppress.rb
Instance Method Summary collapse
- #_match_with?(message_line) ⇒ Boolean
-
#initialize(project_root_dpath) ⇒ PlatformHeaderSuppression
constructor
A new instance of PlatformHeaderSuppression.
Constructor Details
#initialize(project_root_dpath) ⇒ PlatformHeaderSuppression
Returns a new instance of PlatformHeaderSuppression.
54 55 56 |
# File 'lib/adlint/postfilter/suppress.rb', line 54 def initialize(project_root_dpath) @project_root_dpath = project_root_dpath.realpath end |
Instance Method Details
#_match_with?(message_line) ⇒ Boolean
58 59 60 |
# File 'lib/adlint/postfilter/suppress.rb', line 58 def _match_with?() !.fpath.to_s.start_with?(@project_root_dpath.to_s) end |