>> string = \'#{var}\' => \"\\#{var}\" >> proc = Proc.new { |var| string } => # >> proc.call(123) => \"\\
Do you have to define the interpolation-bearing string outside of your Proc?
proc = Proc.new { |var| "#{var}" } proc.call(123) # "123"
This would be the cleanest way I think.