Class: Circuits::Terminal::Input
- Inherits:
-
Object
- Object
- Circuits::Terminal::Input
- Defined in:
- lib/circuits/terminal/input.rb
Overview
Reads from a single output, only assigned to one component
Instance Attribute Summary collapse
-
#output ⇒ Object
The output the input reads from.
Instance Method Summary collapse
-
#get ⇒ Boolean
Forward get to the output.
-
#initialize(opts = {}) ⇒ Input
constructor
Creates the input.
-
#set(s) ⇒ Object
Create a new output to use.
Constructor Details
Instance Attribute Details
#output ⇒ Object
The output the input reads from
15 16 17 |
# File 'lib/circuits/terminal/input.rb', line 15 def output @output end |
Instance Method Details
#get ⇒ Boolean
Forward get to the output
19 20 21 |
# File 'lib/circuits/terminal/input.rb', line 19 def get @output.get end |