File: //usr/share/ri/3.0.0/system/Kernel/require-i.ri
U:RDoc::AnyMethod[iI"require:ETI"Kernel#require;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OLoads the given +name+, returning +true+ if successful and +false+ if the ;TI"feature is already loaded.;To:RDoc::Markup::BlankLine o;
; [ I"JIf the filename neither resolves to an absolute path nor starts with ;TI"A'./' or '../', the file will be searched for in the library ;TI"Fdirectories listed in <code>$LOAD_PATH</code> (<code>$:</code>). ;TI"OIf the filename starts with './' or '../', resolution is based on Dir.pwd.;T@o;
; [I"PIf the filename has the extension ".rb", it is loaded as a source file; if ;TI"Lthe extension is ".so", ".o", or ".dll", or the default shared library ;TI"Kextension on the current platform, Ruby loads the shared library as a ;TI"KRuby extension. Otherwise, Ruby tries adding ".rb", ".so", and so on ;TI"Nto the name until found. If the file named cannot be found, a LoadError ;TI"will be raised.;T@o;
; [I"GFor Ruby extensions the filename given may use any shared library ;TI"Oextension. For example, on Linux the socket extension is "socket.so" and ;TI"F<code>require 'socket.dll'</code> will load the socket extension.;T@o;
; [
I"6The absolute path of the loaded file is added to ;TI"J<code>$LOADED_FEATURES</code> (<code>$"</code>). A file will not be ;TI"Ploaded again if its path already appears in <code>$"</code>. For example, ;TI"M<code>require 'a'; require './a'</code> will not load <code>a.rb</code> ;TI"again.;T@o:RDoc::Markup::Verbatim; [I"require "my-library.rb"
;TI"require "db-driver"
;T:@format0o;
; [I"NAny constants or globals within the loaded source file will be available ;TI"Nin the calling program's global namespace. However, local variables will ;TI"2not be propagated to the loading environment.;T:
@fileI"load.c;T:0@omit_headings_from_table_of_contents_below0I"'require(name) -> true or false
;T0[[I"gem_original_require;To;; [ ;I",lib/rubygems/core_ext/kernel_require.rb;T;0I" (p1);T@3FI"Kernel;TcRDoc::NormalModule00