Method: String#hash

Defined in:
string.c

#hashInteger

Returns the integer hash value for self. The value is based on the length, content and encoding of self.

Returns:

[View source]

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);
}