ruby one loop