Class: AdLint::Initialization

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

Overview

DESCRIPTION

Initialization information.

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, var_name, init_rep) ⇒ Initialization

DESCRIPTION

Constructs the initialization information.

PARAMETER

loc

Location – Location where the variable appears.

var_name

String – Initialized variable name.

init_rep

String – Initializer representation.



282
283
284
285
286
# File 'lib/adlint/code.rb', line 282

def initialize(loc, var_name, init_rep)
  @loc      = loc
  @var_name = var_name
  @init_rep = init_rep
end