Вопрос

I know that in C#, we can use operator for strings when we need to use special characters as letters inside of it. It's like %"!@#*&#Y!@#*&!@#\123". Does anyone know how we can do that on Ruby?

Это было полезно?

Решение

In Ruby, you can use ' or " as your string delimiter. The former doesn't do any special character handling within the string, not even things like \n; the latter does.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top