diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-26 07:10:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-26 07:10:20 +0000 |
commit | c2d54ce2a035435683c9cfbbbba3a5a3fd148ed6 (patch) | |
tree | 005041b306953a5aae48e4c0ac2f506bcb383119 /string.c | |
parent | 7a0d1903d32d57543885929a22f5ead38feb00a8 (diff) | |
download | ruby-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |