title: Escaping single and double quotes in a string in ruby?
body: <p>How can I escape single and double quotes in a string?</p>
  
  <p>I want to escape single and double quotes together. I know how to pass them separately but don't know how to pass both of them.</p>
  
  <p>e.g: <code>str = "ruby 'on rails" " = ruby 'on rails"</code></p>