ruler (n.)

"one who rules," late 14c., agent noun from rule (v.). Meaning "instrument used for making straight lines" is c. 1400 (compare rule (n.)).