Class: RFlow::Component::Port
- Inherits:
-
Object
- Object
- RFlow::Component::Port
- Defined in:
- lib/rflow/component/port.rb
Overview
An input or output port on a RFlow::Component.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#component ⇒ Component
readonly
The RFlow::Component this port belongs to.
-
#connected ⇒ boolean
readonly
True if there are connections to the port.
Instance Method Summary collapse
-
#connected? ⇒ boolean
Synonym for #connected.
-
#initialize(component) ⇒ Port
constructor
A new instance of Port.
Constructor Details
#initialize(component) ⇒ Port
Returns a new instance of Port.
60 61 62 |
# File 'lib/rflow/component/port.rb', line 60 def initialize(component) @component = component end |
Instance Attribute Details
#component ⇒ Component (readonly)
The RFlow::Component this port belongs to.
58 59 60 |
# File 'lib/rflow/component/port.rb', line 58 def component @component end |
#connected ⇒ boolean (readonly)
True if there are connections to the port.
55 56 57 |
# File 'lib/rflow/component/port.rb', line 55 def connected @connected end |
Instance Method Details
#connected? ⇒ boolean
Synonym for #connected.
66 |
# File 'lib/rflow/component/port.rb', line 66 def connected?; connected; end |