зеркало из https://github.com/github/ruby.git
* io.c (Init_IO): Define ARGF.{lines,bytes,chars}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
16ddb4f689
Коммит
e33e3ed2c6
|
@ -1,3 +1,8 @@
|
|||
<<<<<<< .mine
|
||||
Tue May 27 13:12:37 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* io.c (Init_IO): Define ARGF.{lines,bytes,chars}.
|
||||
|
||||
Tue May 27 12:06:37 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* file.c (BUFCHECK): wrong condition. [ruby-core:16921]
|
||||
|
|
3
io.c
3
io.c
|
@ -7650,6 +7650,9 @@ Init_IO(void)
|
|||
rb_define_method(rb_cARGF, "each_line", argf_each_line, -1);
|
||||
rb_define_method(rb_cARGF, "each_byte", argf_each_byte, 0);
|
||||
rb_define_method(rb_cARGF, "each_char", argf_each_char, 0);
|
||||
rb_define_method(rb_cARGF, "lines", argf_each_line, -1);
|
||||
rb_define_method(rb_cARGF, "bytes", argf_each_byte, 0);
|
||||
rb_define_method(rb_cARGF, "chars", argf_each_char, 0);
|
||||
|
||||
rb_define_method(rb_cARGF, "read", argf_read, -1);
|
||||
rb_define_method(rb_cARGF, "readpartial", argf_readpartial, -1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче