Closed noteflakes closed 2 years ago
This class will encapsulate the two fds for a pipe, but allow usage directly in backend IO methods. Example usage:
def test_gzip src = Polyphony.pipe dest = Polyphony.pipe spin { IO.gzip(src, dest) dest.close } src << IO.read(__FILE__) src.close gz = Zlib::GzipReader.new(dest) data = gz.read assert_equal IO.read(__FILE__), data end
This class will encapsulate the two fds for a pipe, but allow usage directly in backend IO methods. Example usage: