[前][次][番号順一覧][スレッド一覧]

ruby-changes:5125

From: knu <ko1@a...>
Date: Tue, 27 May 2008 13:14:12 +0900 (JST)
Subject: [ruby-changes:5125] Ruby:r16620 (trunk): * io.c (Init_IO): Define ARGF.{lines,bytes,chars}.

knu	2008-05-27 13:13:58 +0900 (Tue, 27 May 2008)

  New Revision: 16620

  Modified files:
    trunk/ChangeLog
    trunk/io.c

  Log:
    * io.c (Init_IO): Define ARGF.{lines,bytes,chars}.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16620&r2=16619&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=16620&r2=16619&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 16619)
+++ ChangeLog	(revision 16620)
@@ -1,3 +1,8 @@
+<<<<<<< .mine
+Tue May 27 13:12:37 2008  Akinori MUSHA  <knu@i...>
+
+	* io.c (Init_IO): Define ARGF.{lines,bytes,chars}.
+
 Tue May 27 12:06:37 2008  NAKAMURA Usaku  <usa@r...>
 
 	* file.c (BUFCHECK): wrong condition. [ruby-core:16921]
Index: io.c
===================================================================
--- io.c	(revision 16619)
+++ io.c	(revision 16620)
@@ -7650,6 +7650,9 @@
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]