method

hash

ruby latest stable - Class: Regexp
hash()
public

Produce a hash based on the text and options of this regular expression.

See also Object#hash.