diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-03 11:04:35 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-03 11:04:35 +0000 |
| commit | 944f6da77acd595b4993901740b1f9c4ad90e00c (patch) | |
| tree | ff4ed4df6473229d846ff4f658094fcf66c4c744 /string.c | |
| parent | d5650e33dbdfa5f3cfc49f80a975a1ad4e55a554 (diff) | |
| download | ruby-944f6da77acd595b4993901740b1f9c4ad90e00c.tar.gz ruby-944f6da77acd595b4993901740b1f9c4ad90e00c.tar.xz ruby-944f6da77acd595b4993901740b1f9c4ad90e00c.zip | |
* object.c (Init_Object): added Object#object_id, new name for
Object#id. [new]
* object.c (rb_obj_id_obsolete): give warning for Object#id.
* numeric.c (fix_intern): added Fixnum#to_sym. [new]
* object.c (sym_to_sym): rename from Symbol#intern
* enum.c (enum_zip): added Enumerable#zip. [new]
* array.c (rb_ary_zip): added Array#zip.
* error.c (init_syserr): remove sys_nerr dependency.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3208,6 +3208,7 @@ Init_String() rb_define_method(rb_cString, "<<", rb_str_concat, 1); rb_define_method(rb_cString, "crypt", rb_str_crypt, 1); rb_define_method(rb_cString, "intern", rb_str_intern, 0); + rb_define_method(rb_cString, "to_sym", rb_str_intern, 0); rb_define_method(rb_cString, "include?", rb_str_include, 1); |
