Class: VER::Buffer::Console::Process

Inherits:
EventMachine::Connection
  • Object
show all
Defined in:
lib/ver/buffer/console.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#callbackObject

Returns the value of attribute callback.



7
8
9
# File 'lib/ver/buffer/console.rb', line 7

def callback
  @callback
end

Instance Method Details

#receive_data(data) ⇒ Object



9
10
11
# File 'lib/ver/buffer/console.rb', line 9

def receive_data(data)
  callback.on_stdout(data)
end

#unbindObject



13
14
15
# File 'lib/ver/buffer/console.rb', line 13

def unbind
  callback.closed
end