Class: Input

Inherits:
OnePort show all
Defined in:
lib/Input.rb

Overview

This class defines the Input pad part

Instance Attribute Summary

Attributes inherited from Inst

#inputs, #name, #nodes, #outputs

Instance Method Summary collapse

Methods inherited from Inst

#abelout, #get_port

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