Additionally the hidden classes seems to be written in another language than Ruby.
Unless you mean the code for the RPG::XXXX classes whose code can be found in the help file.
The most commonly type of monkey patching is to overwrite methods. You can alias the methods before overwriting for being able to call them again.