module Regexp::_ToRegexp

Represents an object’s ability to be converted to a Regexp.

This is only used in Regexp.try_convert and Regexp.union within the standard library.