ruby-changes:3225
From: ko1@a...
Date: 26 Dec 2007 16:10:52 +0900
Subject: [ruby-changes:3225] nobu - Ruby:r14718 (trunk): * string.c (Init_String): defines chars method.
nobu 2007-12-26 16:10:20 +0900 (Wed, 26 Dec 2007)
New Revision: 14718
Modified files:
trunk/ChangeLog
trunk/string.c
Log:
* string.c (Init_String): defines chars method.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=14718&r2=14717
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14718&r2=14717
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14717)
+++ ChangeLog (revision 14718)
@@ -1,3 +1,7 @@
+Wed Dec 26 16:10:17 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * string.c (Init_String): defines chars method.
+
Wed Dec 26 14:38:43 2007 NAKAMURA Usaku <usa@r...>
* instruby.rb: install goruby if exists.
Index: string.c
===================================================================
--- string.c (revision 14717)
+++ string.c (revision 14718)
@@ -5741,6 +5741,7 @@
rb_define_method(rb_cString, "split", rb_str_split_m, -1);
rb_define_method(rb_cString, "lines", rb_str_each_line, -1);
rb_define_method(rb_cString, "bytes", rb_str_each_byte, 0);
+ rb_define_method(rb_cString, "chars", rb_str_each_char, 0);
rb_define_method(rb_cString, "reverse", rb_str_reverse, 0);
rb_define_method(rb_cString, "reverse!", rb_str_reverse_bang, 0);
rb_define_method(rb_cString, "concat", rb_str_concat, 1);
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml