ruby class clue stick
Wed, Nov 29, 2006I’ve been trying to convert a mephisto patch into a plugin, and boy has it been a pain. Rick has written a great system and has put into place a lot of plugin support recently. In spite of the efforts to make monkey patching easier, I’ve run into issues involving the monkey patching of instantiated objects. I was initially trying to monkey patch the classes themselves, but apparently once an object has been created, methods added to the class are not added to it. It looks as if the only solution is iterating through ObjectSpace looking for instances of the class I want to patch.