If I add a backslash+space to the start of double and single quoted strings, I get different results:
\"\\ text\"
\'\\ text\'
In the outpu
This is not a full answer (since the simple question has been answered already), but rather it is supplementary information.
Which style of Ruby string quoting do you favour?
Don't use double quotes if you have to escape them. And don't fall in "single vs double quotes" trap. Ruby has excellent support for arbitrary delimiters for string literals:
http://rors.org/2008/10/26/dont-escape-in-strings
I took that advice and have never looked back!