Method: String#hash
- Defined in:
- string.c
permalink #hash ⇒ Integer
Returns the integer hash value for self
. The value is based on the length, content and encoding of self
.
3317 3318 3319 3320 3321 3322 |
# File 'string.c', line 3317
static VALUE
rb_str_hash_m(VALUE str)
{
st_index_t hval = rb_str_hash(str);
return ST2FIX(hval);
}
|