Add function to convert old ruby hash syntax into new one