summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-27 07:51:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-27 07:51:28 +0000
commitc35afec197e7fc05ead1d08d7a803adbbd2959f2 (patch)
tree77c778d34621f9aa769f9a83da44fa6ab77ecfc5 /object.c
parentc04ff57993a1ba5a7cf7efa4a417f2254d703be0 (diff)
* object.c (Init_Object): "===" calls rb_obj_equal() directly.
[ruby-list:39937] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/object.c b/object.c
index 559ebd954f..e8d86c7fbe 100644
--- a/object.c
+++ b/object.c
@@ -2584,6 +2584,7 @@ Init_Object()
rb_define_method(rb_cSymbol, "to_s", sym_to_s, 0);
rb_define_method(rb_cSymbol, "id2name", sym_to_s, 0);
rb_define_method(rb_cSymbol, "to_sym", sym_to_sym, 0);
+ rb_define_method(rb_cSymbol, "===", rb_obj_equal, 1);
rb_define_method(rb_cModule, "freeze", rb_mod_freeze, 0);
rb_define_method(rb_cModule, "===", rb_mod_eqq, 1);