Ruby is an abstraction of a feature over several different drivers, allowing the automatic specification / compilation.
Shouts to the original contributors of bsnes/ bsnes-classic. I have a hope that by explaining Ruby, I can understand how to apply this in my own project, where I aim to produce a self-doing API abstraction for Audio over QT/SDL.
I will only explain the Audio section. I sometimes combine .hpp and .cpp files into one code listing, which I comment the beginning of the CPP with