From f7676fd9d4bfa23e1dabf11c26f7ca47eeb4d425 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 31 Dec 2008 09:06:09 +0000 Subject: update rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index 14807ae1ee..df05436dde 100644 --- a/io.c +++ b/io.c @@ -281,6 +281,11 @@ rb_io_get_write_io(VALUE io) * * IO.try_convert(STDOUT) # => STDOUT * IO.try_convert("STDOUT") # => nil + * + * 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