Class: Input
Overview
This class defines the Input pad part
Instance Attribute Summary
Attributes inherited from Inst
#inputs, #name, #nodes, #outputs
Instance Method Summary collapse
-
#initialize(name) ⇒ Input
constructor
This method is called when a new object is instantiated, it takes the name of the Inst object (name) as its only argument.
Methods inherited from Inst
Constructor Details
#initialize(name) ⇒ Input
This method is called when a new object is instantiated, it takes the name of the Inst object (name) as its only argument. It is responsible for defining applicable input pins, then calling its superclass, OnePort, to complete other tasks.
5 6 7 8 |
# File 'lib/Input.rb', line 5 def initialize(name) super(name) self.inputs = "#{self.name}p0\tpin;\n" end |