Class: OrigenTesters::IGXLBasedTester::Base::Edges
- Inherits:
-
Object
- Object
- OrigenTesters::IGXLBasedTester::Base::Edges
- Includes:
- Generator
- Defined in:
- lib/origen_testers/igxl_based_tester/base/edges.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#edges ⇒ Object
Returns the value of attribute edges.
Attributes included from Generator
Instance Method Summary collapse
-
#add(grp, pin, options = {}) ⇒ Object
Defines a new Edge object for the category and pin name.
-
#initialize(options = {}) ⇒ Edges
constructor
:nodoc:.
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
#initialize(options = {}) ⇒ Edges
:nodoc:
9 10 11 12 13 |
# File 'lib/origen_testers/igxl_based_tester/base/edges.rb', line 9 def initialize( = {}) # :nodoc: @edges = Hash.new do |h, k| h[k] = {} end end |
Instance Attribute Details
#edges ⇒ Object
Returns the value of attribute edges.
7 8 9 |
# File 'lib/origen_testers/igxl_based_tester/base/edges.rb', line 7 def edges @edges end |
Instance Method Details
#add(grp, pin, options = {}) ⇒ Object
Defines a new Edge object for the category and pin name
16 17 18 19 20 |
# File 'lib/origen_testers/igxl_based_tester/base/edges.rb', line 16 def add(grp, pin, = {}) grp = grp.to_sym unless grp.is_a? Symbol pin = pin.to_sym unless pin.is_a? Symbol edges[grp][pin] = platform::Edge.new() end |