convert integer to array in ruby