Class: AdLint::LinkerTraits

Inherits:
Object
  • Object
show all
Includes:
Validation
Defined in:
lib/adlint/traits.rb

Overview

DESCRIPTION

Traits information of the linker used in the project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Validation

#ensure_dir_presence_of, #ensure_dirs_presence_of, #ensure_exam_packages_presence_of, #ensure_file_presence_of, #ensure_inclusion_of, #ensure_numericality_of, #ensure_presence_of, #ensure_true_or_false_of, #ensure_validity_of, #ensure_with, #errors, included, #valid?, #validators

Constructor Details

#initialize(doc) ⇒ LinkerTraits

Returns a new instance of LinkerTraits.



465
466
467
468
# File 'lib/adlint/traits.rb', line 465

def initialize(doc)
  @identifier_max         = doc["identifier_max"]
  @identifier_ignore_case = doc["identifier_ignore_case"]
end

Instance Attribute Details

#identifier_ignore_caseObject (readonly)

VALUE

Boolean – The flag indicates that external symbols are identified without case by the linker.



482
483
484
# File 'lib/adlint/traits.rb', line 482

def identifier_ignore_case
  @identifier_ignore_case
end

#identifier_maxObject (readonly)

VALUE

Integer – Max length of all external symbols identified by the linker.



476
477
478
# File 'lib/adlint/traits.rb', line 476

def identifier_max
  @identifier_max
end

Instance Method Details

#entity_nameObject



470
471
472
# File 'lib/adlint/traits.rb', line 470

def entity_name
  "linker_traits"
end

#freezeObject



485
486
487
488
489
# File 'lib/adlint/traits.rb', line 485

def freeze
  @identifier_max.freeze
  @identifier_ignore_case.freeze
  super
end