TL DR is the hash
value for Ruby top-level , which is equivalent to self.hash
.
Here is some debugging help:
irb(main):001:0> hash #=> 3220857809431415791 irb(main):002:0> defined? hash #=> "method" irb(main):003:0> method(:hash) #=> #<Method: Object(Kernel)#hash>
Now you can search for Object#hash
1 online:
http://ruby-doc.org/core-2.3.1/Object.html#method-i-hash
Or in IRB:
irb(main):004:0> help "Object#hash" = Object
1 Object(Kernel)#hash
means that hash
is defined in Kernel
, but as stated in the documentation for Object
:
Although the object instance methods are defined by the kernel module, we decided to write them here for clarity.
source share