How can I escape single and double quotes in a string?
I want to escape single and double quotes together. I know how to pass them separately but don\'t know how to
I would use just: str = %(ruby 'on rails ") Because just % stands for double quotes(or %Q) and allows interpolation of variables on the string.
str = %(ruby 'on rails ")
%