From: David Corbin Date: 2005-10-18T08:24:54+09:00 Subject: How do you write an equality method? Without getting into the details of which equality method (eql?, equal?, ==), I'm curious about how such a method should be written for class where you're trying to keep the interface appropriatley private. Consider: class Foo def initialize(color) @color = color end . . . end If I do not wish to expose color via an attr_reader, how do I write an equality method for this class? David