From: "trans (Thomas Sawyer)" Date: 2012-03-19T03:30:20+09:00 Subject: [ruby-core:43458] [ruby-trunk - Feature #4523] Kernel#require to return the path of the loaded file Issue #4523 has been updated by trans (Thomas Sawyer). No, b/c that's not running in the process and at the point in code which is in question. ---------------------------------------- Feature #4523: Kernel#require to return the path of the loaded file https://bugs.ruby-lang.org/issues/4523#change-24926 Author: regularfry (Alex Young) Status: Feedback Priority: Normal Assignee: Category: Target version: =begin It's very useful to be able to tell which actual file on disc was loaded following a call to require, without having to manually traverse $LOAD_PATH. This information is also not guaranteed to be in $LOADED_FEATURES. The attached patch alters rb_require_safe's return value to indicate the loaded file iff a file is actually loaded. =end -- http://bugs.ruby-lang.org/