Class: VER::Buffer::Console::Stderr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stderr) ⇒ Stderr

Returns a new instance of Stderr.



21
22
23
# File 'lib/ver/buffer/console.rb', line 21

def initialize(stderr)
  @stderr = stderr
end

Instance Attribute Details

#callbackObject

Returns the value of attribute callback.



19
20
21
# File 'lib/ver/buffer/console.rb', line 19

def callback
  @callback
end

Instance Method Details

#receive_data(data) ⇒ Object



25
26
27
# File 'lib/ver/buffer/console.rb', line 25

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