When reading source code, I always want to know the full path of the file when it is loaded, is there any callback method in ruby to accomplish this, or any other way to do
Gordon Wilson's answer is great, just wanted to add that you can also see which libraries were loaded (and their complete path!) , by looking at the output of the variable $" (returns an array of absolute file names)
e.g. the path of the most recently loaded library is at the end of the array