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:
parent
89c2ab70a4
commit
8ed6868de0
1 changed files with 6 additions and 0 deletions
6
io.c
6
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue