On 12/29/2011 08:10 AM, Nikolai Weibull wrote: > Hi! > > What¡Çs the standard way of implementing #hash for value objects in Ruby? I don't know how good this is, but if your objects have a unique string representation, you could use example_object.to_s.hash. I'm sure there must be more efficient solutions, but this solution has the advantage that it's pretty easy to implement and should reduce the possibility of collisions if you use your objects as keys in a Hash. -Jeremy