instance method
Proc#hash
() -> ::Integer
prc.hash → integer
proc.c
View on GitHub ↗
static VALUE
proc_hash(VALUE self)
{
st_index_t hash;
hash = rb_hash_start(0);
hash = rb_hash_proc(hash, self);
hash = rb_hash_end(hash);
return ST2FIX(hash);
}
Returns a hash value corresponding to proc body.
See also Object#hash.