title: Ruby - How do I access keys from an array nested in a hash
body: <p>I'm working on a small video game on the console where I have a main config hash that stores values for the game. When I try to access keys in an array in that hash, they don't return anything. Am I doing something wrong?</p>
  
  <pre><code>cfg =
  {
      :gameVersion =&gt; 1.0,
      :invPouch =&gt; ['flint', 'string'],
      :gold =&gt; 50
  }
  
  puts cfg[:invPouch[1]]
  </code></pre>