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

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
This commit is contained in:
yugui 2009-01-01 06:42:39 +00:00
parent 89c2ab70a4
commit 8ed6868de0

6
io.c
View file

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