From: Jim Freeze Date: 2001-11-01T04:56:05+09:00 Subject: [ruby-talk:24024] How do I dynamically add functions to an object? Hi: I am trying to add functions to an object. The code is in a protected environment and each object has a string that defines new code. I would like to put the code in a unique module but don't know if this is possible. Here is what I have so far. s =< wrong argument type String (expected Module) #c.extend(UniqModule);c.a #=> in a This last line works, but it would force me to have a fixed module name. Thanks ========================================================= Jim Freeze jim@freeze.org --------------------------------------------------------- No comment at this time. http://www.freeze.org =========================================================