Definitely doable. Just use load to load the changes. You would also  
have to look at the current object space and make you adjustments. I  
believe that changes to a class don't modify its already existing  
instances. But you can always add and remove behavior of an object.

Diego Scataglini

On Jul 8, 2007, at 4:31 PM, Ari Brown <ari / aribrown.com> wrote:

>
> On Jul 8, 2007, at 3:58 PM, SonOfLilit wrote:
>
>> What kind of modifications are you looking into?
>>
>>
>> Aur
> <snip>
>
> I was talking about actual code modifications. Could Ruby modify  
> it's own code? Take this example...
>
> Ruby asks the user the URL of a code modification thing (eg, a  
> cleaner version of a patch, or just a patch).
>
>    What is the URL?
>        http://www.awesomesauce.net/awesome.rb
>    Downloading....
> And then Ruby would make modifications to its own code.
>
> Possible or Impossible?
>
> Ari
> -------------------------------------------|
> Nietzsche is my copilot
>
>
>