Y
Hacker News
new
|
ask
|
show
|
jobs
by
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.