Method: Output#initialize
- Defined in:
- lib/Output.rb
#initialize(name) ⇒ Output
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 output pins, then calling its superclass, OnePort, to complete other tasks.
5 6 7 8 |
# File 'lib/Output.rb', line 5 def initialize(name) super(name,[0],[]) self.outputs = "#{self.name}p0\tpin;\n" end |