Issue #4523 has been updated by Nobuyoshi Nakada.

Category set to core
Status changed from Open to Feedback
Target version set to 2.0

What do you expect when the library has loaded already?
----------------------------------------
Feature #4523: Kernel#require to return the path of the loaded file
http://redmine.ruby-lang.org/issues/4523

Author: Alex Young
Status: Feedback
Priority: Normal
Assignee: 
Category: core
Target version: 2.0


=begin
It's very useful to be able to tell which actual file on disc was loaded following a call to require, without having to manually traverse $LOAD_PATH. This information is also not guaranteed to be in $LOADED_FEATURES.

The attached patch alters rb_require_safe's return value to indicate the loaded file iff a file is actually loaded.
=end



-- 
http://redmine.ruby-lang.org