Method: ThreePorts#initialize
- Defined in:
- lib/ThreePorts.rb
#initialize(name) ⇒ ThreePorts
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 calling its superclass Inst and passing to it the correct number of input ports and output ports to be created.
8 9 10 |
# File 'lib/ThreePorts.rb', line 8 def initialize(name) super(name,[0,1],[2]) end |