summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 06:42:39 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 06:42:39 +0000
commit6277a37f051a6c01837779b30d2a1f023a1ffaf8 (patch)
tree2398081ddb7c08003c2fe9f2691fee9a961a3f35
parent56ce99cc91e0aa7ae8ee1b8ace67d91a09e96772 (diff)
merges r21211 and r21213 from trunk into ruby_1_9_1.
update rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io.c b/io.c
index 88f1c51e5..50bc02897 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") # => #<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)