Class: OrigenTesters::SmartestBasedTester::V93K::Builder::PatternMaster
- Inherits:
-
Object
- Object
- OrigenTesters::SmartestBasedTester::V93K::Builder::PatternMaster
- Defined in:
- lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb
Overview
Responsible for modelling/building the contents of a V93K pattern master file
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
- #add_sub_file(pm) ⇒ Object
-
#initialize(file = nil) ⇒ PatternMaster
constructor
A new instance of PatternMaster.
Constructor Details
#initialize(file = nil) ⇒ PatternMaster
Returns a new instance of PatternMaster.
9 10 11 12 13 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 9 def initialize(file = nil) @file = file @paths = {} parse_file if file end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 7 def file @file end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
7 8 9 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 7 def paths @paths end |
Instance Method Details
#add_sub_file(pm) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/origen_testers/smartest_based_tester/v93k/builder/pattern_master.rb', line 15 def add_sub_file(pm) pm.paths.each do |path, files| if paths[path] paths[path] += files paths[path].uniq! else paths[path] = files end end end |