Ruby - Remove array enumeration handling