diff options
author | hogelog <[email protected]> | 2023-12-12 07:13:54 +0900 |
---|---|---|
committer | <[email protected]> | 2023-12-12 07:13:54 +0900 |
commit | 4a94ce8569c9399bd286d943ff35f6f3a25ed1b6 () | |
tree | fc00e37ce79c071395d8c0d5a1375a038d2b317d /load.c | |
parent | 69d60cc67ba0d7cf9318ccafa9d4c625103e955d (diff) |
[DOC] Fix RDoc to match actual Kenrel.require behavior (#9180)
-rw-r--r-- | load.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -957,15 +957,14 @@ static VALUE rb_require_string_internal(VALUE fname, bool resurrect); * If the filename starts with './' or '../', resolution is based on Dir.pwd. * * If the filename has the extension ".rb", it is loaded as a source file; if - * the extension is ".so", ".o", or ".dll", or the default shared library - * extension on the current platform, Ruby loads the shared library as a - * Ruby extension. Otherwise, Ruby tries adding ".rb", ".so", and so on - * to the name until found. If the file named cannot be found, a LoadError - * will be raised. * - * For Ruby extensions the filename given may use any shared library - * extension. For example, on Linux the socket extension is "socket.so" and - * <code>require 'socket.dll'</code> will load the socket extension. * * The absolute path of the loaded file is added to * <code>$LOADED_FEATURES</code> (<code>$"</code>). A file will not be |