aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-26 07:10:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-26 07:10:20 +0000
commitc2d54ce2a035435683c9cfbbbba3a5a3fd148ed6 (patch)
tree005041b306953a5aae48e4c0ac2f506bcb383119 /string.c
parent7a0d1903d32d57543885929a22f5ead38feb00a8 (diff)
downloadruby-c2d54ce2a035435683c9cfbbbba3a5a3fd148ed6.tar.gz
* string.c (Init_String): defines chars method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 1 insertions, 0 deletions
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);