class Fluxite::Cord(T)
- Fluxite::Cord(T)
- Reference
- Object
Overview
Cord is a programmatically toggleable connection between two ports. Functionally
resembles a valve which you can open (#enable
) or close (#disable
).
Defined in:
fluxite/cord.crConstructors
Instance Method Summary
-
#disable : self
Restricts objects from passing from the input port to the output port.
-
#enable : self
Lets objects pass from the input port to the output port.
-
#enabled?
Returns
true
if this cord is enabled (objects emitted by the input port are passed to the output port). -
#input : Port(T)
Returns the input port.
- #inspect(io)
-
#output : Port(T)
Returns the output port.
- #to_s(io)
Constructor Detail
Instance Method Detail
def enabled?
#
Returns true
if this cord is enabled (objects emitted by the input port
are passed to the output port). Otherwise, returns false
.