after making changes to a particular file,
I would either like to overwrite the already included one or ‘unrequire’
the existing one. Is this possible ?
My tests below indicate it is not…
TIA,
Tuka
C:\Ruby\hotelreg>ruby script/console
Loading development environment.
after making changes to a particular file,
I would either like to overwrite the already included one or ‘unrequire’
the existing one. Is this possible ?
after making changes to a particular file,
I would either like to overwrite the already included one or ‘unrequire’
the existing one. Is this possible ?
ri Kernel#load
Well, you could also remove the file from the array $", and rerequire
it, but I would not recommend it ;).
($" contains the list of the files loaded with ‘require’ and is used
to check that a file is not loaded twice)