Does ruby have memory streams somewhere that I'm missing? It looks like IO is just for file-backed streams... I'm hoping for something similar to System.IO.MemoryStream
in .NET?
Are you after something like StringIO?
There are pipes:
r, w = IO.pipe
w.puts("Hello World")
puts r.gets
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With