Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Returns the integer hash value for self. The value is based on the length, content and encoding of self.
Related: Object#hash.
 
               static VALUE
rb_str_hash_m(VALUE str)
{
    st_index_t hval = rb_str_hash(str);
    return ST2FIX(hval);
}
            

Was this page useful?