Ruby Convert String Array Into Integer Definition