class AdLint::ContextMessage

DESCRIPTION

Message complements other messages.

Public Class Methods

new(msg_catalog, msg_name, check_class, loc, *parts) click to toggle source
Calls superclass method AdLint::Message::new
# 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

Public Instance Methods

must_be_deferred?() click to toggle source
# File lib/adlint/message.rb, line 313
def must_be_deferred?
  false
end
must_be_unique?() click to toggle source
# File lib/adlint/message.rb, line 309
def must_be_unique?
  false
end

Private Instance Methods

type() click to toggle source

DESCRIPTION

Reads the type of this message.

RETURN VALUE

SymbolMessage type symbol.

# File lib/adlint/message.rb, line 323
def type
  :C
end
type_str() click to toggle source

DESCRIPTION

Reads the type string of this message.

RETURN VALUE

StringMessage type string.

# File lib/adlint/message.rb, line 332
def type_str
  "context"
end