Which style of Ruby string quoting do you favour?

后端 未结 9 1810
挽巷
挽巷 2020-11-30 00:31

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

9条回答
  •  无人及你
    2020-11-30 01:06

    I usually use double quotes unless I specifically need to disable escaping/interpolation.

提交回复
热议问题