how to input a array in a hash?

Hi people I was working on my script and for convenience sake I wanted to be able to input method in array but I use for configurations Hash if I show 

hashconfig ={ :array_method =[1,1]}I want to being able to extract the content for use it...and no I don't want to spare that into a different section I have to make it usable in the hash simply because I use it for my AI_Personality[ai_id] ={ } who can be different from each.

I hope you will be able to help me thanks 🙂
Code:
hashconfig ={ :array_method => [1,1]}
this works too:
Code:
hashconfig ={ array_method: [1,1]}
okai but how I can even extract the information from the array inside the hash?? I tried but this not worked but maybe I do a error of syntax...
hashconfig[:array_method]is an array like any other.This will show you the values:

Code:
p hashconfig[:array_method]
By default array indexes will start with 0, so in that example, you have two indexes: 0 and 1
Code:
hashconfig[:array_method][0]hashconfig[:array_method][1]
thanks man : D ! 

Original thread: https://forums.rpgmakerweb.com/threads/how-to-input-a-array-in-a-hash.43251/