I\'ve been reading through Thomas\' Programming Ruby 1.9 and came upon the alternative delimited single and double-quoting methods (%q / %Q). I\'ve known of the
They are useful when your string contains single- or double- quotes. This doesn't happen all that often, but the technique is very useful when it does.