title: What is the use case for Ruby's %q / %Q quoting methods?
body: <p>I've been reading through Thomas' Programming Ruby 1.9 and came upon the alternative delimited single and double-quoting methods (<code>%q / %Q</code>). I've known of them from other Ruby language references as well.</p>
  
  <pre><code>%q/I'm acting like a single-quoted string/
  
  %Q|"I'm acting like a double-quoted string" --Anonymous|
  </code></pre>
  
  <p>I have not been working with Ruby for long, but I have <em>never</em> encountered this quoting method in production code.</p>
  
  <p>Other than the obvious ability to <strong>avoid internally escaping quotes</strong> with backslashes, what are the common use cases for this method of quoting over regular single or double quotes? Are they typically used in single or multiline strings? If used in multiline strings, are they ever favored over HEREDOC strings? Is there a particular Ruby idiom where they're commonly found?</p>