mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/stringio/stringio.c (Init_stringio): add StringIO#readpartial as
an alias for StringIO#sysread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fc8cbe79bf
commit
55bf54a9c0
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Aug 27 12:13:50 2004 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* ext/stringio/stringio.c (Init_stringio): add StringIO#readpartial as
|
||||
an alias for StringIO#sysread.
|
||||
|
||||
Fri Aug 27 10:14:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* process.c (rb_proc_exec): strip trailing spaces. [ruby-dev:24143]
|
||||
|
|
|
@ -997,6 +997,7 @@ Init_stringio()
|
|||
rb_define_method(StringIO, "readlines", strio_readlines, -1);
|
||||
rb_define_method(StringIO, "read", strio_read, -1);
|
||||
rb_define_method(StringIO, "sysread", strio_sysread, -1);
|
||||
rb_define_method(StringIO, "readpartial", strio_sysread, -1);
|
||||
|
||||
rb_define_method(StringIO, "write", strio_write, 1);
|
||||
rb_define_method(StringIO, "<<", strio_addstr, 1);
|
||||
|
|
Loading…
Reference in a new issue