From c2d54ce2a035435683c9cfbbbba3a5a3fd148ed6 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Dec 2007 07:10:20 +0000 Subject: [PATCH] * string.c (Init_String): defines chars method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ string.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index dfd779699d..6cadd20b38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 26 16:10:17 2007 Nobuyoshi Nakada + + * string.c (Init_String): defines chars method. + Wed Dec 26 14:38:43 2007 NAKAMURA Usaku * instruby.rb: install goruby if exists. diff --git a/string.c b/string.c index 9dc6a13109..c4319a4896 100644 --- a/string.c +++ b/string.c @@ -5741,6 +5741,7 @@ Init_String(void) 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);