A generalization of 2-primal near-rings