summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index b5de7ca8bd..1b4b2c4d31 100644
--- a/object.c
+++ b/object.c
@@ -604,8 +604,7 @@ rb_mod_cmp(mod, arg)
return INT2FIX(1);
arg = RCLASS(arg)->super;
}
- rb_raise(rb_eArgError, "non related class/module");
- return Qnil; /* not reached */
+ return Qnil;
}
static VALUE
@@ -1308,6 +1307,7 @@ Init_Object()
rb_define_method(rb_cSymbol, "intern", sym_intern, 0);
rb_define_method(rb_cModule, "===", rb_mod_eqq, 1);
+ rb_define_method(rb_cModule, "==", rb_obj_equal, 1);
rb_define_method(rb_cModule, "<=>", rb_mod_cmp, 1);
rb_define_method(rb_cModule, "<", rb_mod_lt, 1);
rb_define_method(rb_cModule, "<=", rb_mod_le, 1);