Interpolation within single quotes
ruby, string, string-interpolation
Solution
You can use `%{text contains "#{search.query}"}` if you don't want to escape the double quotes `"text contains \"#{search.query}\""`.
Problem
How can I perform interpolation within single quotes? I tried something like this but there are two problems. ``` string = 'text contains "#{search.query}"' ``` - It doesn't work I need the final string to have the dynamic content wrapped in double quotes like so: ``` 'text contains "candy"' ``` Probably seems strange but the gem that I'm working with requires this.