解决方法
哈希方法是为所有对象定义的.见
documentation:
Generates a
Fixnum
hash value for this
object. This function must have the
property thata.eql?(b)
impliesa.hash == b.hash
.
The hash value is used by classHash
. Any hash value that
exceeds the capacity of aFixnum
will
be truncated before being used.