module PatternPark class ProcessRunner attr_reader :path, :r, :w, :e def initialize(*command) require 'open3' @command = command @w, @r, @e = Open3.popen3(*@command) end def puts(msg) @w.puts(msg) end def read return r.read end def read_err return e.read end end end