新手问题 Ruby 怎么大段跨行使用字符串常量

eaonll · December 23, 2017 · Last by eaonll replied at December 23, 2017 · 1332 hits

有需求是在代码里面有很多字符串,为了好看,需要跨行来写类似

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
 ....
</soapenv:Envelope>

但是发现需要转义 就是 " 符号需要转义

不知道怎么写不需要转义呢。而且比较美观

You need to Sign in before reply, if you don't have an account, please Sign up first.