How do rings work

how do rings work, i know what they do, why they exist, and where they are used, but how do they internally work

look in the github code.