From: "charliesome (Charlie Somerville)" Date: 2012-12-18T13:58:43+09:00 Subject: [ruby-core:50957] [ruby-trunk - Feature #7548] Load and Require Callbacks Issue #7548 has been updated by charliesome (Charlie Somerville). =begin You can use (({Kernel#caller})) to obtain the filename of the caller =end ---------------------------------------- Feature #7548: Load and Require Callbacks https://bugs.ruby-lang.org/issues/7548#change-34820 Author: trans (Thomas Sawyer) Status: Open Priority: Normal Assignee: Category: Target version: next minor =begin Should #load and #require have callbacks? e.g. def required(path) ... end def loaded(path, wrap) ... end On occasion I have wanted to do load monitoring to track down a bug. This would have made it easier. Are there any other good use cases? =end -- http://bugs.ruby-lang.org/