Class: OrigenTesters::Decompiler::Nodes::Pinlist

Inherits:
Node
  • Object
show all
Defined in:
lib/origen_testers/decompiler/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#context, #type

Instance Method Summary collapse

Methods inherited from Node

#execute?, inherited, #platform_nodes

Constructor Details

#initialize(pins:, context:) ⇒ Pinlist

Returns a new instance of Pinlist.



105
106
107
108
109
110
# File 'lib/origen_testers/decompiler/nodes.rb', line 105

def initialize(pins:, context:)
  # remove trailing formatting characters
  pins = pins.map { |p| p.split(':').first }
  @pins = pins.map(&:strip).map(&:to_sym)
  super(context: context, type: :pinlist)
end

Instance Attribute Details

#pinsObject (readonly) Also known as: pinlist

Returns the value of attribute pins.



102
103
104
# File 'lib/origen_testers/decompiler/nodes.rb', line 102

def pins
  @pins
end