summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-31 09:06:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-31 09:06:09 +0000
commitf7676fd9d4bfa23e1dabf11c26f7ca47eeb4d425 (patch)
tree1dea66014b91d2bf99499318f47bd9f6a6c66bd7
parent021aaa70d6c9e10f62dacba0a9a54ef6723ea170 (diff)
update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c5
1 files changed, 5 insertions, 0 deletions
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") # => #<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)