Class: AdLint::Postfilter::AdLintInitialHeaderSuppression

Inherits:
MessageSuppression show all
Defined in:
lib/adlint/postfilter/suppress.rb

Instance Method Summary collapse

Constructor Details

#initialize(cinit_fpath, pinit_fpath) ⇒ AdLintInitialHeaderSuppression

Returns a new instance of AdLintInitialHeaderSuppression.



43
44
45
46
# File 'lib/adlint/postfilter/suppress.rb', line 43

def initialize(cinit_fpath, pinit_fpath)
  @cinit_fpath = cinit_fpath
  @pinit_fpath = pinit_fpath
end

Instance Method Details

#_match_with?(message_line) ⇒ Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/adlint/postfilter/suppress.rb', line 48

def _match_with?(message_line)
  message_line.fpath == @cinit_fpath || message_line.fpath == @pinit_fpath
end