1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

update rdoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-12-31 09:06:09 +00:00
parent 021aaa70d6
commit f7676fd9d4

5
io.c
View file

@ -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)