How exactly does this work? Does one language invoke another and another in a chain, or ruby at the top calling A, then B, then C..

And is that an Ouroboros snake, or something else

The top of the repo explains it: https://github.com/mame/quine-relay