AdLint::CodeStructure
Initialization information.
Initialization
Constructs the initialization information.
Location – Location where the variable appears.
Location
String – Initialized variable name.
String
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
Converts this code structure information into array representation.
Array< Object > – Array representation.
Object
# File lib/adlint/code.rb, line 294 def to_a ["INI", *@loc.to_a, @var_name, @init_rep] end