Rubycop iteration