I was trying to remove required script (plugin) from memory via
remove_const.
It works fine but after that the require method doesn't require the script
again.
It's because or $" array which contains already required file names.
Unfortunately the $" variable is read-only so I have to
1. temporarily rename the script, then require it or
2. use eval instead of require
Do you think is there a better solution?
thank you,
jan molic
You cannot assign $" but you can change the array:
13:08:03 [~]: ruby -r socket -e 'p $";$".delete "socket.so"; p $"'
["socket.so"]
[]
Kind regards
robert