class AdLint::Postfilter::FileWiseSuppression

Attributes

fpath[R]

Public Class Methods

new(message_id, fpath, active) click to toggle source
# File lib/adlint/postfilter/suppress.rb, line 88
def initialize(message_id, fpath, active)
  super(message_id)
  @fpath = fpath
  self.active = active
end

Public Instance Methods

_match_with?(message_line) click to toggle source
Calls superclass method AdLint::Postfilter::MessageWiseSuppression#_match_with?
# File lib/adlint/postfilter/suppress.rb, line 96
def _match_with?(message_line)
  if self.active?
    super && message_line.fpath == @fpath
  else
    false
  end
end