D
David Corbin
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
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