Class: Input

capsula.Input(opt_functionopt)

Input operation is a specific public property of a capsule. Input operation serves as a propagator of calls from the outside towards the inside of the capsule that owns the operation. Input operations go along with output operations; they are complementary concepts.

Constructor

new Input(opt_functionopt)

Creates new input operation as a property of the capsule that represents the current context of execution.
Parameters:
Name Type Attributes Description
opt_function function <optional>
optional function that gets called every time input operation gets called, i.e. it is a sort of implementation of the input operation to be created
Since:
  • 0.1.0
Source:
See:
Throws:
Type
Error