зеркало из https://github.com/github/ruby.git
dea1baa169
* ext/stringio/stringio.c (strio_getline): should not set $_ here. * io.c (argf_to_s): argf.to_s returns "ARGF". * io.c (set_defout_var, set_deferr_var): make $defout and $deferr obsolete. * io.c (set_input_var, set_output_var): allow $stdin, $stdout, $stderr not to be instance of IO. * io.c (rb_f_readline): forward method to current_file. gets, readline, readlines, getc, readchar, tell, seek, pos=, rewind, fileno, to_io, eof, each_line, each_byte, binmode, and closed? as well. * io.c (argf_forward): utility function to forward method to current_file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
---|---|---|
.. | ||
.cvsignore | ||
MANIFEST | ||
README | ||
depend | ||
stringio.c |
README
-*- rd -*- $Author$ $Date$ =begin = StringIO Pseudo (({IO})) class from/to (({String})). This library is based on MoonWolf version written in Ruby. Thanks a lot. = Differences to (({IO})) * not implemented: (({fcntl})), (({reopen})). * (({fileno})) returns nil. * (({pos=})) returns new position, not 0. * (({ungetc})) does nothing at start of the string. =end