End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Regexp#hash
hash → integer
re.c
View on GitHub ↗
VALUE
rb_reg_hash(VALUE re)
{
st_index_t hashval = reg_hash(re);
return ST2FIX(hashval);
}
Returns the integer hash value for self.
Related: Object#hash.