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

ruby-changes:5139

From: knu <ko1@a...>
Date: Tue, 27 May 2008 19:04:17 +0900 (JST)
Subject: [ruby-changes:5139] Ruby:r16634 (ruby_1_8): Adjust order.

knu	2008-05-27 19:01:31 +0900 (Tue, 27 May 2008)

  New Revision: 16634

  Modified files:
    branches/ruby_1_8/ext/stringio/stringio.c

  Log:
    Adjust order.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/stringio/stringio.c?r1=16634&r2=16633&diff_format=u

Index: ruby_1_8/ext/stringio/stringio.c
===================================================================
--- ruby_1_8/ext/stringio/stringio.c	(revision 16633)
+++ ruby_1_8/ext/stringio/stringio.c	(revision 16634)
@@ -1336,12 +1336,12 @@
     rb_define_method(StringIO, "path", strio_path, 0);
 
     rb_define_method(StringIO, "each", strio_each, -1);
+    rb_define_method(StringIO, "each_line", strio_each, -1);
+    rb_define_method(StringIO, "lines", strio_each, -1);
     rb_define_method(StringIO, "each_byte", strio_each_byte, 0);
     rb_define_method(StringIO, "bytes", strio_each_byte, 0);
     rb_define_method(StringIO, "each_char", strio_each_char, 0);
     rb_define_method(StringIO, "chars", strio_each_char, 0);
-    rb_define_method(StringIO, "each_line", strio_each, -1);
-    rb_define_method(StringIO, "lines", strio_each, -1);
     rb_define_method(StringIO, "getc", strio_getc, 0);
     rb_define_method(StringIO, "getbyte", strio_getc, 0);
     rb_define_method(StringIO, "ungetc", strio_ungetc, 1);

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

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