וַיֹּאמֶר֩ בֹּ֨עַז לַזְּקֵנִ֜ים וְכָל־הָעָ֗ם עֵדִ֤ים אַתֶּם֙ הַיּ֔וֹם כִּ֤י קָנִ֙יתִי֙ אֶת־כָּל־אֲשֶׁ֣ר לֶֽאֱלִימֶ֔לֶךְ וְאֵ֛ת כָּל־אֲשֶׁ֥ר לְכִלְי֖וֹן וּמַחְל֑וֹן מִיַּ֖ד נָעֳמִֽי׃
И сказал Вооз старейшинам и всему народу: 'В этот день вы свидетели того, что я купил все, что было Елимелех'с, и все это был Chilion'с и махлон'с руки Наоми.
Siftei Chakhamim
They appointed him to be their judge. You might ask: How does Rashi know that he was a judge? The answer is: It is written he was “sitting at the gate,” and “the gate” is usually the place of judgment, as we find with Boaz (Ruth 4:1). Furthermore, it is written later וישפט שפוט (v. 9), implying he was a judge.