Sorry I didn't reply in the mailing list (a habit not to spam).

And that solution worked fine, thankx for the answer.

Ben.

Mauricio FernŠŌdez wrote:
> On Sun, Mar 02, 2003 at 02:31:54AM +0900, Ben Thomas wrote:
> 
>>Hello,
>>
>>I was wondering what is the best way to "re-require" a file in ruby. In 
>>my code, I have a function that looks like this:
>>
>>  def LoadAndExecute
>>    require 'script_that_has_foo_in_it.rb'
>>    foo
>>  end
>>
>>If I executre that function once, then modify the script_that_...rb and 
>>re-execute the LoadAndExecute function without stopping everything, the 
>>script file isn't reaquired and foo re-execute the old code. I have 
>>added the following line before require '...rb'
>>
>>  $".delete "script_that_...rb"
>>
>>and it works fine but I want to make sure that it's a valid way of doing 
>>"re-require".
> 
> 
> load "script_that_has_foo_in_it.rb"
>