RosettaCodeData/Task/Literals-String/Ruby/literals-string-2.rb

5 lines
141 B
Ruby

a = 42
"double quotes with \"embedded quote\"\nnewline and variable interpolation: #{a} % 10 = #{a % 10}"
%Q(same as above)
%|same as above|