This means you can use it to refer to both men and women who rule:
* The ruler of the country. (Could be a king, queen, or other title)
* A ruler for drawing straight lines. (This has no gender association)
If you need to be more specific about the gender of the ruler, you would use words like "king" or "queen," "emperor" or "empress," or "president" or "prime minister."