Ruby array delete element and return array