Class: AdLint::Postfilter::MessageControl

Inherits:
Object
  • Object
show all
Defined in:
lib/adlint/postfilter/annotate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_str)
  @message_id = message_id_str.to_sym
end

Instance Attribute Details

#message_idObject (readonly)

Returns the value of attribute message_id.



119
120
121
# File 'lib/adlint/postfilter/annotate.rb', line 119

def message_id
  @message_id
end

Instance Method Details

#suppression_activation?Boolean

Returns:

  • (Boolean)


121
122
123
# File 'lib/adlint/postfilter/annotate.rb', line 121

def suppression_activation?
  subclass_responsibility
end

#suppression_deactivation?Boolean

Returns:

  • (Boolean)


125
126
127
# File 'lib/adlint/postfilter/annotate.rb', line 125

def suppression_deactivation?
  !suppression_activation?
end