Class: OrigenTesters::Interface::PatternArray
- Inherits:
-
Array
- Object
- Array
- OrigenTesters::Interface::PatternArray
- Defined in:
- lib/origen_testers/interface.rb
Instance Method Summary collapse
- #<<(pat) ⇒ Object
-
#push(pat) ⇒ Object
Override the array push method to capture the pattern under the new API, but maintain the old one where a pattern reference was just pushed to the referenced_patterns array.
Instance Method Details
#<<(pat) ⇒ Object
14 15 16 |
# File 'lib/origen_testers/interface.rb', line 14 def <<(pat) push(pat) end |
#push(pat) ⇒ Object
Override the array push method to capture the pattern under the new API, but maintain the old one where a pattern reference was just pushed to the referenced_patterns array
21 22 23 |
# File 'lib/origen_testers/interface.rb', line 21 def push(pat) Origen.interface.record_pattern_reference(pat) end |