Class: OrigenTesters::Decompiler::Pattern::Pinlist
- Defined in:
- lib/origen_testers/decompiler/pattern/elements/pinlist.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, context:) ⇒ Pinlist
constructor
A new instance of Pinlist.
-
#pinlist ⇒ Array
Returns the pinlist as an ordered list.
-
#pinlist_size ⇒ Integer
(also: #size)
Returns the size of the pinlist.
- #pins ⇒ Object
- #to_yaml_hash ⇒ Object
Methods inherited from Base
#[], #execute!, #method_missing, #platform_nodes
Constructor Details
#initialize(node:, context:) ⇒ Pinlist
Returns a new instance of Pinlist.
7 8 9 10 |
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 7 def initialize(node:, context:) @source = :pinlist super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OrigenTesters::Decompiler::Pattern::Base
Instance Method Details
#pinlist ⇒ Array
Returns the pinlist as an ordered list.
18 19 20 |
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 18 def pinlist processor.pins end |
#pinlist_size ⇒ Integer Also known as: size
Returns the size of the pinlist.
28 29 30 |
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 28 def pinlist_size processor.pinlist.size end |
#pins ⇒ Object
22 23 24 |
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 22 def pins processor.pins end |
#to_yaml_hash ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/origen_testers/decompiler/pattern/elements/pinlist.rb', line 33 def to_yaml_hash { class: self.class.to_s, processor: processor.class.to_s, pinlist: pinlist, platform_nodes: _platform_nodes_ } end |