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:

Mirror of Site – https://web.archive.org/web/20160310224440/http://rors.org/2008/10/26/dont-escape-in-strings

Original Site –
http://rors.org/2008/10/26/dont-escape-in-strings

Leave a Comment