diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-11 14:05:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-11 14:05:34 +0900 |
commit | d77b84ca82e1cef10ef06776a207151ef864b3ca (patch) | |
tree | 6c44084b44d2ccd88e528509d8c02aa9e8aea5a4 /load.c | |
parent | d34303ad109b93445b01d0420c9a5bfeffafac38 (diff) |
$LOAD_PATH.resolve_feature_path
Moved from RubyVM. [Feature #15903]
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1238,6 +1238,7 @@ Init_load(void) vm->expanded_load_path = rb_ary_tmp_new(0); vm->load_path_snapshot = rb_ary_tmp_new(0); vm->load_path_check_cache = 0; + rb_define_singleton_method(vm->load_path, "resolve_feature_path", rb_resolve_feature_path, 1); rb_define_virtual_variable("$\"", get_loaded_features, 0); rb_define_virtual_variable("$LOADED_FEATURES", get_loaded_features, 0); |