Class: AdLint::ContextMessage
Overview
DESCRIPTION
Message complements other messages.
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(msg_catalog, msg_name, check_class, loc, *parts) ⇒ ContextMessage
constructor
A new instance of ContextMessage.
- #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, msg_name, check_class, loc, *parts) ⇒ ContextMessage
Returns a new instance of ContextMessage.
304 305 306 307 |
# File 'lib/adlint/message.rb', line 304 def initialize(msg_catalog, msg_name, check_class, loc, *parts) msg_id = MessageId.new(check_class.catalog.name, msg_name) super(msg_catalog.lookup(msg_id), loc, *parts) end |
Instance Method Details
#must_be_deferred? ⇒ Boolean
313 314 315 |
# File 'lib/adlint/message.rb', line 313 def must_be_deferred? false end |
#must_be_unique? ⇒ Boolean
309 310 311 |
# File 'lib/adlint/message.rb', line 309 def must_be_unique? false end |