Y
Hacker News
new
|
ask
|
show
|
jobs
by
reaganing
5437 days ago
Thank you, that makes sense.
1 comments
getsat
5436 days ago
Interpolation actually calls #to_s on the object, so if object.respond_to?(:to_s) returns true, you can use use it inside #{} in any kind of string that allows interpolation.
link