Class: RFlow::Component::Port

Inherits:
Object
  • Object
show all
Defined in:
lib/rflow/component/port.rb

Overview

An input or output port on a RFlow::Component.

Direct Known Subclasses

HashPort

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#componentComponent (readonly)

The RFlow::Component this port belongs to.

Returns:



58
59
60
# File 'lib/rflow/component/port.rb', line 58

def component
  @component
end

#connectedboolean (readonly)

True if there are connections to the port.

Returns:

  • (boolean)


55
56
57
# File 'lib/rflow/component/port.rb', line 55

def connected
  @connected
end

Instance Method Details

#connected?boolean

Synonym for #connected.

Returns:

  • (boolean)


66
# File 'lib/rflow/component/port.rb', line 66

def connected?; connected; end