Class: AdLint::ContextMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/adlint/message.rb

Overview

DESCRIPTION

Message complements other messages.

Instance Attribute Summary

Attributes inherited from Message

#location

Instance Method Summary collapse

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

Returns:

  • (Boolean)


313
314
315
# File 'lib/adlint/message.rb', line 313

def must_be_deferred?
  false
end

#must_be_unique?Boolean

Returns:

  • (Boolean)


309
310
311
# File 'lib/adlint/message.rb', line 309

def must_be_unique?
  false
end