%Q
-
Alternative way in ruby to enclose strings in double quotes.
-
Useful when you have more quote characters in a string.You can use this instead of putting backslashes in front of them.
-
Can use in escaping HTML and multiline SQL statements.
Usage
>> %Q(Hello Ryan!)
>> "Hello Ryan!"