Project

General

Profile

Actions

Feature #7548

open

Load and Require Callbacks

Added by trans (Thomas Sawyer) almost 9 years ago. Updated over 3 years ago.

Status:
Open
Priority:
Normal
Target version:
-
[ruby-core:50806]

Description

=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

Actions

Also available in: Atom PDF