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?
cfg =
{
:gameVersion => 1.0,
:invPouch => ['flint', 'string'],
:gold => 50
}
puts cfg[:invPouch[1]]