If someone rules you out of a contest or activity, they say that you cannot be involved in it. If something rules you out of a contest or activity, it prevents you from being involved in it.
He has ruled himself out of the world championships next year. [VERB noun PARTICLE PARTICLE noun]
A damaged hamstring has ruled him out of contention for Wednesday's internationalagainst Spain. [VERB noun PARTICLE PARTICLE noun]