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

Instance Method Summary collapse

Instance Attribute Details

#parentObject (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

Parameters:

  • parent (Object)

    unbind and receive_line events are



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

#unbindObject



36
37
38
39
# File 'lib/console/mux/pty_handler.rb', line 36

def unbind
  parent.unbind
  super
end