D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Kernel
/
Filename :
require-i.ri
back
Copy
U:RDoc::AnyMethod[iI"require:ETI"Kernel#require;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"NWhen RubyGems is required, Kernel#require is replaced with our own which ;TI"*is capable of loading gems on demand.;To:RDoc::Markup::BlankLine o; ; [I">When you call <tt>require 'x'</tt>, this is what happens:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"CIf the file can be loaded from the existing Ruby loadpath, it ;TI"is.;To;;0; [o; ; [I"EOtherwise, installed gems are searched for a file that matches. ;TI"CIf it's found in gem 'y', that gem is activated (added to the ;TI"loadpath).;T@o; ; [I"EThe normal <tt>require</tt> functionality of returning false if ;TI"4that file has already been loaded is preserved.;T: @fileI",lib/rubygems/core_ext/kernel_require.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(path);T@&FI"Kernel;TcRDoc::NormalModule00