查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: require-i.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/Kernel/require-i.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Ruby tries to load the library named <em>string</em>, returning <tt>true</tt> if successful. If the filename does not resolve to an absolute path, it will be searched for in the directories listed in <tt>$:</tt>. If the file has the extension ``.rb'', it is loaded as a source file; if the extension is ``.so'', ``.o'', or ``.dll'', or whatever the default shared library extension is 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. The name of the loaded feature is added to the array in <tt>$"</tt>. A feature will not be loaded if it's name already appears in <tt>$"</tt>. However, the file name is not converted to an absolute path, so that ``<tt>require 'a';require './a'</tt>'' will load <tt>a.rb</tt> twice. - !ruby/struct:SM::Flow::VERB body: " require "my-library.rb"\n require "db-driver"\n" full_name: Kernel#require is_singleton: false name: require params: | require(string) => true or false visibility: public
💾 保存文件
← 返回文件管理器