????Ruby?г??????????????????
????1????str = String.new("abcd")     #=>"abcd"
????2????str = "abcd"   ?????????????????
????3????str = %{abcd}  ????????????????????ε????????????????????????????е???????????????????????·???????

 

str1 = "ab"
str2 = "cd"
str = str1 + str2
str = "#{str1}#{str2}"  ???#{}???????????????á?

????4????str = String.try_convert("abc")      #=> "abc"
????5????str = %Q{abc}    ???????????????????
????6????str = %q{abc}   ???????????????????
???????︽??Ruby??????е????????????????????????????????????????????????????????????????????????滻????????????????????????????滻??

 

irb(main):067:0> str = "abc"
=> "abc"
irb(main):068:0> xx = "ss#{str}"
=> "ssabc"
irb(main):069:0> xx = 'ss#{str}'
=> "ss#{str}"