Class: OrigenTesters::SmartestBasedTester::Base::VariablesFile
- Inherits:
-
Object
- Object
- OrigenTesters::SmartestBasedTester::Base::VariablesFile
- Includes:
- Generator
- Defined in:
- lib/origen_testers/smartest_based_tester/base/variables_file.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#flow_control_variables ⇒ Object
readonly
Returns the value of attribute flow_control_variables.
-
#id ⇒ Object
Returns the value of attribute id.
-
#runtime_control_variables ⇒ Object
readonly
Returns the value of attribute runtime_control_variables.
Instance Method Summary collapse
- #clean_flow_control_variables ⇒ Object
- #clean_runtime_control_variables ⇒ Object
-
#initialize(options = {}) ⇒ VariablesFile
constructor
A new instance of VariablesFile.
- #subdirectory ⇒ Object
Methods included from Generator
#close, #collection, #collection=, #compiler, #current_dir, #dont_diff=, execute_source, #file_extension, #file_pipeline, #finalize, #identity_map, #import, #inhibit_output, #name, #on_close, #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 = {}) ⇒ VariablesFile
Returns a new instance of VariablesFile.
11 12 13 14 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 11 def initialize( = {}) @flow_control_variables = [] @runtime_control_variables = [] end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
9 10 11 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 9 def filename @filename end |
#flow_control_variables ⇒ Object (readonly)
Returns the value of attribute flow_control_variables.
8 9 10 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 8 def flow_control_variables @flow_control_variables end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 9 def id @id end |
#runtime_control_variables ⇒ Object (readonly)
Returns the value of attribute runtime_control_variables.
8 9 10 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 8 def runtime_control_variables @runtime_control_variables end |
Instance Method Details
#clean_flow_control_variables ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 20 def clean_flow_control_variables flow_control_variables.uniq.sort do |x, y| x = x[0] if x.is_a?(Array) y = y[0] if y.is_a?(Array) x <=> y end end |
#clean_runtime_control_variables ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 28 def clean_runtime_control_variables runtime_control_variables.uniq.sort do |x, y| x = x[0] if x.is_a?(Array) y = y[0] if y.is_a?(Array) x <=> y end end |
#subdirectory ⇒ Object
16 17 18 |
# File 'lib/origen_testers/smartest_based_tester/base/variables_file.rb', line 16 def subdirectory 'testflow/mfh.testflow.setup' end |