ruby-changes:9670
From: akr <ko1@a...>
Date: Wed, 31 Dec 2008 18:06:20 +0900 (JST)
Subject: [ruby-changes:9670] Ruby:r21211 (trunk): update rdoc.
akr 2008-12-31 18:06:09 +0900 (Wed, 31 Dec 2008) New Revision: 21211 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21211 Log: update rdoc. Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 21210) +++ io.c (revision 21211) @@ -281,6 +281,11 @@ * * IO.try_convert(STDOUT) # => STDOUT * IO.try_convert("STDOUT") # => nil + * + * f = open("/tmp/zz.gz") # => #<File:/tmp/zz.gz> + * z = Zlib::GzipReader.open(f) # => #<Zlib::GzipReader:0x81d8744> + * IO.try_convert(z) # => #<File:/tmp/zz.gz> + * */ static VALUE rb_io_s_try_convert(VALUE dummy, VALUE io) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/