Actions
Bug #12174
closedInterpolation ignores `to_s` (and `inspect`) when `to_s` is defined to `nil`.
Bug #12174:
Interpolation ignores `to_s` (and `inspect`) when `to_s` is defined to `nil`.
Description
Updated by sawa (Tsuyoshi Sawada) over 10 years ago
The description was too specific. Whenever to_s is defined to be not a string, the issue arises.
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
- Status changed from Open to Rejected
Yes, to be interpolated into a string, to_s must return a string.
Non-string object cannot be concatenated to a string.
Actions