It's not really automatic interpolation. You have to very explicitly place the variable name inside ${var}. I'm puzzled in how you would think this will happen accidentally, or more accidentally than writing "+var+".
I've used Ruby quite a while and never experienced any problems with the very same construct in there.