title: Ruby: How to make IRB print structure for Arrays and Hashes
body: <p>When I make a new array/hash in <strong>irb</strong>, it prints out a nice format to show the structure, ex.</p>
  
  <pre><code>["value1", "value2", "value3"]
  {"key1" =&gt; "value1"}
  </code></pre>
  
  <p>... but when I try to print out my variables using <code>puts</code>, I get them collapsed:</p>
  
  <pre><code>value1
  value2
  value3
  key1
  value1
  </code></pre>
  
  <p>I gather that <code>puts</code> is not the right command for what I want, but what is?  I want to be able to view my variables in <strong>irb</strong> in the first format, not the second.</p>