--001636c928b59e070104776c220a Content-Type: text/plain; charset=ISO-8859-1 By "Should it?" I mean "in the future" -- I'm not implying there's a bug now. That is, I'm aware of how it works now. I'm just questioning whether it is worth changing. I believe it should be possible in theory to make it work -- though as I said, I haven't dig into the source. Hal Fulton On Mon, Nov 2, 2009 at 5:44 PM, Charles Oliver Nutter <headius / headius.com>wrote: > StringIO is not actually an IO object; it just mimics one. Unless > reopen worked with non-descriptor IO-like objects (as in JRuby), it > would not be possible to IO#reopen against a StringIO. > > On Monday, November 2, 2009, Hal Fulton <rubyhacker / gmail.com> wrote: > > I've noticed (via my friend Taylor Carpenter) that IO#reopen > > doesn't work for a StringIO object. > > > > Should it? > > > > I haven't dug into the source yet, but my guess is that it would > > be easy to implement... > > > > > > Hal Fulton > > > > --001636c928b59e070104776c220a--