title: Is there a built-in method in Ruby to convert LF to CRLF in a string and vice versa?
body: <p>We can certainly do it by </p>
  
  <p><code>string.chomp+"\r\n"</code></p>
  
  <p>but I'm wondering is there an elegant way to do it.</p>