change ruby to array