--opJtzjQTFsWo+cga
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 25, 2011 at 10:14:54PM +0900, Charles Nutter wrote:
> 
> Issue #5479 has been updated by Charles Nutter.
> 
> 
> I assume the IO produced from a StringIO would not have a real file descriptor, since...it doesn't have a real file descriptor.
> 
> Could be done in JRuby using a ByteArrayInputStream. I'm not sure what itould mean to have read *and* write support though. Is that what's requested here? A pseudo-IO that reads from and writes to an area of memory?

Yes, that's exactly what it is.  JRuby already implements StringIO from
stdlib.  I think Konstantin is just asking for:

1. You don't need to require stringio for it to be available

2. An implementation of `to_io` on String like this:

  class String
    def to_io; StringIO.new self; end
  end

-- 
Aaron Patterson
http://tenderlovemaking.com/

--opJtzjQTFsWo+cga
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJOpus2AAoJEJUxcLy0/6/G3+wH/2KF+vhe30o4qqXcZxq46z6J
HtystlPOwJNV0jZUqxJA0sQF6/npK/DWR/RwDFZ2gjFIfcgqhUUtjMj/5juw+Lke
/bujjxmzfdZk71VupsjvLiZ8Pdz0ks0PEBtrtKOjUW10S/9yNsvuG+m1dwxPj/IZ
3y9RIaGwZhkTdmDzjHziZiu3l8tfKOdjjn+Gqlo1kJFIoyGa7l6YLvDo7dxMK9t4
rflvYS4znJMXkv+/KkkIbCKedYTg4jB78oq9S/aC3xv/u2JE4s4RvYKGej5NZ/J0
LEPFDsPmIz/2d3FKq3vZsUTCuqBEa5ukt05prP9DX5hc2nWYlyL825FNxowyAmgt
-----END PGP SIGNATURE-----

--opJtzjQTFsWo+cga--