From: Ben Thomas Date: 2003-03-02T02:31:54+09:00 Subject: A question about require. 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". Thankx, Ben.