Project

General

Profile

Actions

Feature #7548

open

Load and Require Callbacks

Added by trans (Thomas Sawyer) almost 12 years ago. Updated 8 months ago.

Status:
Assigned
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
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0