class ProcessHandler
Public Class Methods
new(cb)
click to toggle source
# File lib/slinky/em-popen3.rb, line 38 def initialize cb @cb = cb @stdout = [] @stderr = [] end
Public Instance Methods
receive_data(data)
click to toggle source
# File lib/slinky/em-popen3.rb, line 44 def receive_data data @stdout << data end
receive_stderr(data)
click to toggle source
# File lib/slinky/em-popen3.rb, line 48 def receive_stderr data @stderr << data end
unbind()
click to toggle source
# File lib/slinky/em-popen3.rb, line 52 def unbind @cb.call @stdout.join(''), @stderr.join(''), get_status if @cb end