module _ToStr

A type thatโ€™s implicitly convertible to a String.

Implicit .to_str conversions are usable all over Rubyโ€™s stdlib, such as Kernel#abort, String#+, and Object#send. Virtually anywhere that accepts a String will also accept something that defines .to_str.

Types that define .to_str are also usable wherever paths are expected (See the path type alias).