title: Convert YAML into an array of hashes
body: <p>So I have this <code>permissionrank.yaml</code> file:</p>
  
  <pre><code>player:
    id: 1
    label: Player
    badge: NIL
  
  bronze helper:
    id: 2
    label: Bronze Helper
    badge: STF_HELP_BRZ
  
  silver helper:
    id: 3
    label: Silver Helper
    badge: STF_HELP_SLV
  </code></pre>
  
  <p>Is there any way to load this into an <strong>array</strong> of hashes so it would fit the same format of Rails' <code>seeds.rb</code> file? It should output:</p>
  
  <pre><code>[
    {id: 1, label: "Player",                badge: "NIL"        },
    {id: 2, label: "Bronze Helper",         badge: "STF_HLP_BRZ"},
    {id: 3, label: "Silver Helper",         badge: "STF_HLP_SLV"},
  ]
  </code></pre>
  
  <p>That's the format Rails' seeds file asks for.</p>