class IO::Stapled
Overview
This class staples together two unidirectional IO
s to form a single,
bidirectional IO
.
Example (loopback):
io = IO::Stapled.new(*IO.pipe)
io.puts "linus"
io.gets # => "linus"
Most methods simply delegate to the underlying IO
s.