method

hash

v1_9_3_392 - Show latest stable - Class: Object
hash()
public

Generates a Fixnum hash value for this object. This function must have the property that a.eql?(b) implies a.hash == b.hash. The hash value is used by class Hash. Any hash value that exceeds the capacity of a Fixnum will be truncated before being used.

"waffle".hash #=> -910576647