Module: Console::Mux::PTYHandler
- Includes:
- EventMachine::Protocols::LineText2
- Defined in:
- lib/console/mux/pty_handler.rb
Overview
Handle input from a PTY that has been connected to EventMachine
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Object
forwarded to this object.
- #receive_line(line) ⇒ Object
- #unbind ⇒ Object
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
27 28 29 |
# File 'lib/console/mux/pty_handler.rb', line 27 def parent @parent end |
Instance Method Details
#initialize(parent) ⇒ Object
forwarded to this object
31 32 33 34 |
# File 'lib/console/mux/pty_handler.rb', line 31 def initialize(parent) super() @parent = parent end |
#receive_line(line) ⇒ Object
41 42 43 |
# File 'lib/console/mux/pty_handler.rb', line 41 def receive_line(line) parent.receive_line(line) end |
#unbind ⇒ Object
36 37 38 39 |
# File 'lib/console/mux/pty_handler.rb', line 36 def unbind parent.unbind super end |