Is there any way in Ruby, I can avoid the need to use double backslash in Ruby strings (for example, what can be done in C #):
For example, in C # there may be a prefix for string c @, and then the backslash in the string does not need to be escaped:
@"C:\Windows, C:\ABC"
Without @us, we will need to avoid the backslash:
"C:\\Windows, C:\\ABC"
Is there something similar in Ruby?
source
share