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

rdoc update.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-12-31 11:09:27 +00:00
parent 2be0eea2e8
commit a6d38b8c39

1
io.c
View file

@ -282,6 +282,7 @@ rb_io_get_write_io(VALUE io)
* IO.try_convert(STDOUT) # => STDOUT * IO.try_convert(STDOUT) # => STDOUT
* IO.try_convert("STDOUT") # => nil * IO.try_convert("STDOUT") # => nil
* *
* require 'zlib'
* f = open("/tmp/zz.gz") # => #<File:/tmp/zz.gz> * f = open("/tmp/zz.gz") # => #<File:/tmp/zz.gz>
* z = Zlib::GzipReader.open(f) # => #<Zlib::GzipReader:0x81d8744> * z = Zlib::GzipReader.open(f) # => #<Zlib::GzipReader:0x81d8744>
* IO.try_convert(z) # => #<File:/tmp/zz.gz> * IO.try_convert(z) # => #<File:/tmp/zz.gz>