Project

General

Profile

Actions

Feature #7548

open

Load and Require Callbacks

Added by trans (Thomas Sawyer) over 11 years ago. Updated over 6 years ago.

Status:
Open
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

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0