Class: AdLint::Postfilter::MessageControl
- Inherits:
-
Object
- Object
- AdLint::Postfilter::MessageControl
- Defined in:
- lib/adlint/postfilter/annotate.rb
Direct Known Subclasses
MessageSuppressionActivation, MessageSuppressionDeactivation
Instance Attribute Summary collapse
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
Instance Method Summary collapse
-
#initialize(message_id_str) ⇒ MessageControl
constructor
A new instance of MessageControl.
- #suppression_activation? ⇒ Boolean
- #suppression_deactivation? ⇒ Boolean
Constructor Details
#initialize(message_id_str) ⇒ MessageControl
Returns a new instance of MessageControl.
115 116 117 |
# File 'lib/adlint/postfilter/annotate.rb', line 115 def initialize() @message_id = .to_sym end |
Instance Attribute Details
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
119 120 121 |
# File 'lib/adlint/postfilter/annotate.rb', line 119 def @message_id end |
Instance Method Details
#suppression_activation? ⇒ Boolean
121 122 123 |
# File 'lib/adlint/postfilter/annotate.rb', line 121 def suppression_activation? subclass_responsibility end |
#suppression_deactivation? ⇒ Boolean
125 126 127 |
# File 'lib/adlint/postfilter/annotate.rb', line 125 def suppression_deactivation? !suppression_activation? end |