title: How do I print a multi-dimensional array in ruby?
body: <p>What's the preferred method of printing a multi-dimensional array in ruby?</p>
  
  <p>For example, suppose I have this 2D array:</p>
  
  <pre><code>x = [ [1, 2, 3], [4, 5, 6]]
  </code></pre>
  
  <p>I try to print it:</p>
  
  <pre><code>&gt;&gt; print x
  123456
  </code></pre>
  
  <p>Also what doesn't work:</p>
  
  <pre><code>&gt;&gt; puts x
  1
  2
  3
  4
  5
  6
  </code></pre>