Show full path name of the ruby file when it get loaded

前端 未结 5 590
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 05:04

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

5条回答
  •  眼角桃花
    2020-12-10 05:39

    I'm curious why you're using load instead of require - in all of my time using Ruby. I've never had occasion to utilize load.

提交回复
热议问题