Retrieve original string prior to interpolation

Viewed 65

I want to write a small patch to String class for my test environment that will warn for usage of double quotes without interpolation (#{foo}).

  1. Is there a way to resolve if a string has derived from interpolation?
  2. If yes, is there a way to retrieve the original un-interpolated value?
1 Answers
Related