summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-03 08:45:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-03 08:45:26 +0000
commitaa1ea534ced1699c4bc7f91a6ba8b11338152b28 (patch)
tree99b881e01316af946a2dfa978b0067aae9675f6b /object.c
parentb19669233e192a530892b6aca4642820ff8169d2 (diff)
downloadruby-aa1ea534ced1699c4bc7f91a6ba8b11338152b28.tar.gz
ruby-aa1ea534ced1699c4bc7f91a6ba8b11338152b28.tar.xz
ruby-aa1ea534ced1699c4bc7f91a6ba8b11338152b28.zip
* object.c (Init_Object): default Object#=== now calls "=="
internally. * re.c (rb_reg_initialize_m): should honor option status of original regexp. * array.c (rb_ary_equal): ary2 should be T_ARRAY (no to_ary conversion). * array.c (rb_ary_eql): ditto. * string.c (rb_str_equal): str2 should be T_STRING (no to_str conversion). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index befbfe272..7a59abee1 100644
--- a/object.c
+++ b/object.c
@@ -1314,7 +1314,7 @@ Init_Object()
rb_define_method(rb_mKernel, "nil?", rb_false, 0);
rb_define_method(rb_mKernel, "==", rb_obj_equal, 1);
rb_define_method(rb_mKernel, "equal?", rb_obj_equal, 1);
- rb_define_method(rb_mKernel, "===", rb_obj_equal, 1);
+ rb_define_method(rb_mKernel, "===", rb_equal, 1);
rb_define_method(rb_mKernel, "=~", rb_false, 1);
rb_define_method(rb_mKernel, "eql?", rb_obj_equal, 1);