Class: AdLint::Postfilter::MessageWiseSuppression

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message_id) ⇒ MessageWiseSuppression

Returns a new instance of MessageWiseSuppression.



64
65
66
# File 'lib/adlint/postfilter/suppress.rb', line 64

def initialize(message_id)
  @message_id = message_id
end

Instance Attribute Details

#message_idObject (readonly)

Returns the value of attribute message_id.



68
69
70
# File 'lib/adlint/postfilter/suppress.rb', line 68

def message_id
  @message_id
end

Instance Method Details

#_match_with?(message_line) ⇒ Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/adlint/postfilter/suppress.rb', line 70

def _match_with?(message_line)
  message_line.message_id == @message_id
end