Class: AdLint::WarningMessage

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

Overview

DESCRIPTION

Semantical warning message.

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, 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.message_id), loc, *parts)
  @check_class = check_class
end

Instance Method Details

#must_be_deferred?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


273
274
275
# File 'lib/adlint/message.rb', line 273

def must_be_unique?
  @check_class.must_be_unique?
end