Which style of Ruby string quoting do you favour? Up until now I\'ve always used \'single quotes\' unless the string contains certain escape sequences or interp
\'single quotes\'
Single quote preserve the characters inside them. But double quotes evaluate and parse them. See the following example:
"Welcome #{@user.name} to App!"
Results:
Welcome Bhojendra to App!
But,
'Welcome #{@user.name} to App!'
Welcome #{@user.name} to App!