Class: AdLint::WarningMessage
Overview
DESCRIPTION
Semantical warning message.
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(msg_catalog, check_class, loc, *parts) ⇒ WarningMessage
constructor
A new instance of WarningMessage.
- #must_be_deferred? ⇒ Boolean
- #must_be_unique? ⇒ Boolean
Methods inherited from Message
#complement_with, #eql?, #hash, #id, #print_as_csv, #print_as_str, #to_s
Constructor Details
#initialize(msg_catalog, check_class, loc, *parts) ⇒ WarningMessage
Returns a new instance of WarningMessage.
268 269 270 271 |
# File 'lib/adlint/message.rb', line 268 def initialize(msg_catalog, check_class, loc, *parts) super(msg_catalog.lookup(check_class.), loc, *parts) @check_class = check_class end |
Instance Method Details
#must_be_deferred? ⇒ Boolean
277 278 279 |
# File 'lib/adlint/message.rb', line 277 def must_be_deferred? @check_class.must_be_deferred? end |
#must_be_unique? ⇒ Boolean
273 274 275 |
# File 'lib/adlint/message.rb', line 273 def must_be_unique? @check_class.must_be_unique? end |