1 2 3 4 5
reader, writer = IO.pipe writer.write("Into the pipe I go...") writer.close puts reader.read