module

Quartz::Coupleable

Inherits Quartz::Transferable

The Coupleable mixin provides models with the ability to be coupled with other coupleables through an input and output interface.

Instance methods

add_input_port(name)

Add given input port to self.

Source
add_output_port(name)

Add given output port to self.

Source
add_port(port : InputPort)

Add given port to self.

Source
add_port(port : OutputPort)

Add given port to self.

Source
each_input_port

Calls given block once for each input port, passing that element as a parameter.

Source
each_output_port

Calls given block once for each output port, passing that element as a parameter.

Source
input_port(name : Name) : InputPort

Find the input port identified by the given name.

Source
input_port?(name : Name) : InputPort | Nil

Find the input port identified by the given name.

Source
input_port_list

Returns the list of input ports

Source
input_port_names

Returns the list of input ports' names

Source
output_port(name : Name) : OutputPort

Find the output port identified by the given name

Source
output_port?(name : Name) : OutputPort | Nil

Find the output port identified by the given name

Source
output_port_list

Returns the list of output ports

Source
output_port_names

Returns the list of output ports' names

Source
remove_input_port(name)

Removes given input port by its name.

Source
remove_output_port(name)

Removes given output port by its name.

Source
remove_port(port : InputPort)

Removes given input port from self.

Source
remove_port(port : OutputPort)

Removes given output port from self.

Source