class AdLint::WarningMessage

DESCRIPTION

Semantical warning message.

Public Class Methods

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

Public Instance Methods

must_be_deferred?() click to toggle source
# File lib/adlint/message.rb, line 277
def must_be_deferred?
  @check_class.must_be_deferred?
end
must_be_unique?() click to toggle source
# File lib/adlint/message.rb, line 273
def must_be_unique?
  @check_class.must_be_unique?
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 287
def type
  :W
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 296
def type_str
  "warning"
end