From 8ed6868de020e00cc1d95618bf76eccd3462924f Mon Sep 17 00:00:00 2001 From: yugui Date: Thu, 1 Jan 2009 06:42:39 +0000 Subject: merges r21211 and r21213 from trunk into ruby_1_9_1. update rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/io.c b/io.c index 88f1c51e52..50bc028979 100644 --- a/io.c +++ b/io.c @@ -281,6 +281,12 @@ rb_io_get_write_io(VALUE io) * * IO.try_convert(STDOUT) # => STDOUT * IO.try_convert("STDOUT") # => nil + * + * require 'zlib' + * f = open("/tmp/zz.gz") # => # + * z = Zlib::GzipReader.open(f) # => # + * IO.try_convert(z) # => # + * */ static VALUE rb_io_s_try_convert(VALUE dummy, VALUE io) -- cgit v1.2.3