Sam Sungshik Kong wrote:
> I know that ruby has "#{name}" expression.
> But that requires a variable named "name" in advance.
> I want to bind the format string and data later.
> What is the closest thing in ruby?
> I find the python expression quite useful.

Others have answered your original question, I think.

But I will point out (in case you do not know) that the
#{} notation is for arbitrary expressions, not just
variable names.

    puts "The answer is #{2*pi*r}"


Hope this helps,
Hal