From: "boris_stitnicky (Boris Stitnicky)" Date: 2012-12-17T02:50:00+09:00 Subject: [ruby-core:50922] [ruby-trunk - Feature #7548] Load and Require Callbacks Issue #7548 has been updated by boris_stitnicky (Boris Stitnicky). It seems that you are shaping and changing your suggestion with each new post, so it is a bit hard to react. But the way I see it, your suggestions belong somewhere to Std-lib 'debug'. Perhaps it might be possible to change stdlib 'debug' to support cherrypicking like ActiveSupport, so you could call require 'debug/kernel/load_callbacks' if you want those callbacks, but not the DEBUGGER itself. I am against adding this directly to the core. ---------------------------------------- Feature #7548: Load and Require Callbacks https://bugs.ruby-lang.org/issues/7548#change-34779 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/