Skip to content
instance method

Hash#rehash

() -> self
rehash → self

Rebuilds the hash table for self by recomputing the hash index for each key; returns self. Calling this method ensures that the hash table is valid.

The hash table becomes invalid if the hash value of a key has changed after the entry was created. See Modifying an Active Hash Key.

See also #rassoc #reject #merge! #reject! also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0