I have a line containing some interpolated statements, for example description='Hello! I am #{self.name}'. This string is stored as-is in the database; therefore, without the use of automatic string interpolation.
I want to apply this interpolation later. I could do something crazy like eval("\"+description+\""), but there should be a more convenient, more ruby way to do this, right?
source
share