From: "Iñaki Baz Castillo" Date: 2011-06-09T08:59:14+09:00 Subject: Re: Where is the #hash method defined? 2011/6/9 Ryan Davis : > % ri hash > ... > (from ruby core) > === Implementation from Object > ------------------------------------------------------------------------------ >  obj.hash    => fixnum > > ------------------------------------------------------------------------------ > > 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. > ... Thanks a lot. However it's not documented in Object class rdoc: http://www.ruby-doc.org/core/classes/Object.html a bug in the doc? -- Iñaki Baz Castillo