1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (Init_String): defines chars method.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-12-26 07:10:20 +00:00
parent 7a0d1903d3
commit c2d54ce2a0
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Dec 26 16:10:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (Init_String): defines chars method.
Wed Dec 26 14:38:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* instruby.rb: install goruby if exists.

View file

@ -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);