title: How to get a specific output iterating a hash in Ruby?
body: <p>I want to get a specific output iterating a Ruby Hash.</p>
  
  <p>This is the Hash I want to iterate over:</p>
  
  <pre><code>hash = {
    1 =&gt; ['a', 'b'], 
    2 =&gt; ['c'], 
    3 =&gt; ['d', 'e', 'f', 'g'], 
    4 =&gt; ['h']
  }
  </code></pre>
  
  <p>This is the output I would like to get:</p>
  
  <pre><code>1-----
  
  a
  
  b
  
  2-----
  
  c
  
  3-----
  
  d 
  
  e
  
  f
  
  g
  
  4-----
  
  h
  </code></pre>
  
  <p>In Ruby, how can I get such an output with my Hash ? </p>