From: Lyle Johnson Date: 2001-03-09T01:40:03+09:00 Subject: [ruby-talk:12281] Which method(s) to override for equality test? I am writing a new class that's implemented by a C extension module and I want to provide an equality test operator. I see that Ruby's Object class has several synonymous functions for this ("==", "===" and "eql?"). Is it sufficient to define just one of these in the new class's methods table, e.g. rb_define_method(cMyClass, "eql?", myEqualsFunc, 1); That appears to be the case when I look at some of Ruby's built-in classes, but I wanted to confirm that the "==" and "===" aliases are automatically inherited from class Object.