Class: OrigenTesters::IGXLBasedTester::Base::References

Inherits:
Object
  • Object
show all
Includes:
Generator
Defined in:
lib/origen_testers/igxl_based_tester/base/references.rb

Direct Known Subclasses

UltraFLEX::References

Constant Summary collapse

OUTPUT_PREFIX =
nil
OUTPUT_POSTFIX =
nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Generator

#close, #collection, #collection=, #compiler, #current_dir, #dont_diff=, execute_source, #file_extension, #file_pipeline, #filename, #filename=, #finalize, #identity_map, #import, #inhibit_output, #name, #on_close, original_reference_file, original_reference_file=, #output_file, #output_inhibited?, #platform, #reference_file, #render, #set_flow_description, #stats, #to_be_written?, #write_from_template, #write_to_file

Constructor Details

#initializeReferences

:nodoc:



11
12
13
# File 'lib/origen_testers/igxl_based_tester/base/references.rb', line 11

def initialize # :nodoc:
  @references = []
end

Instance Attribute Details

#referencesObject

Returns the value of attribute references.



6
7
8
# File 'lib/origen_testers/igxl_based_tester/base/references.rb', line 6

def references
  @references
end

Instance Method Details

#add(reference, options = {}) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/origen_testers/igxl_based_tester/base/references.rb', line 15

def add(reference, options = {})
  options = {
    comment: nil
  }.merge(options)

  @references << { ref: reference, comment: options[:comment] }
end