From: ErMaker Date: 2009-05-20T13:30:37+09:00 Subject: I want to redirect stderr to StringIO. --0016e64f80b41334ac046a507d94 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit >> IO.new(2).reopen(StringIO.new) TypeError: can't convert StringIO into String from (irb):1:in `reopen' from (irb):1 >> IO.new(2).reopen(IO.new(1)) => # StringIO also do as IO, but IO#reopen fails. I want to redirect stderr to StringIO, but it doesn't work. --0016e64f80b41334ac046a507d94--