Class: AdLint::MacroDef

Inherits:
CodeStructure show all
Defined in:
lib/adlint/code.rb

Overview

DESCRIPTION

Macro definition information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, macro_name, macro_type) ⇒ MacroDef

DESCRIPTION

Constructs the macro definition information.

PARAMETER

loc

Location – Location where the definition appears.

macro_name

String – Macro name.

macro_type

String – Macro type string.



230
231
232
233
234
# File 'lib/adlint/code.rb', line 230

def initialize(loc, macro_name, macro_type)
  @loc        = loc
  @macro_name = macro_name
  @macro_type = macro_type
end