class AdLint::Initialization

DESCRIPTION

Initialization information.

Public Class Methods

new(loc, var_name, init_rep) click to toggle source

DESCRIPTION

Constructs the initialization information.

PARAMETER

loc

LocationLocation where the variable appears.

var_name

String – Initialized variable name.

init_rep

String – Initializer representation.

# 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

Private Instance Methods

to_a() click to toggle source

DESCRIPTION

Converts this code structure information into array representation.

RETURN VALUE

Array< Object > – Array representation.

# File lib/adlint/code.rb, line 294
def to_a
  ["INI", *@loc.to_a, @var_name, @init_rep]
end