title: Ruby one liner to pass arrays elements into a string with separator
body: <p>I have an array like this:</p>
  
  <pre><code>myarray = ['value1','value2','value3']
  </code></pre>
  
  <p>And I'm looking for a one element array like this:</p>
  
  <pre><code>mynewarray = ['value1|value2|value3']
  </code></pre>
  
  <p>I know how to do that using each and concatening in a string, but I'm wondering if there is a oneliner and beautiful Ruby way of doing so...</p>