Method: Object#hash

Defined in:
lib/source/ruby.rb

#hashObject

call-seq:

obj.hash -> js_string

Generates a hash value for this object, in JavaScript native string form, which is used by class Hash to access its internal contents table. This function must have the property that a.eql?(b) implies a.hash == b.hash, and is typically overridden in child classes.



379
380
381
# File 'lib/source/ruby.rb', line 379

def hash
  `'o_'+this.__id__`
end