Re:Ruby Type Conversion
by kddeisz on Friday September 10, 2021 @06:30PM
(#28487630)
Is that semantic difference documented anywhere? I’ve never heard of this before, would love to learn more.
[ Parent
| on HN ]
Re:Ruby Type Conversion
by dragonwriter on Friday September 10, 2021 @06:45PM
(#28487729)
The official documentation for the implicit conversion protocol (which to_str is part of, as distinct from to_s) is here:
https://ruby-doc.org/core-3.0.2/doc/implicit_conversion_rdoc...
to_s is documented here: