title: Join elements in array
body: <p>I have an array in Ruby, like <code>["dog", "cat", bat"]</code>. How can I join them into a single string with words separated by spaces, like <code>"dog cat bat"</code>? I know it's easy to iterate over the elements and join them one-by-one, but is there a one-line way?</p>