📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 09:17:10
📂
/ (Root)
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
Kernel
📍 /opt/alt/ruby31/share/ri/system/Kernel
🔄 Refresh
✏️
Editing: cdesc-Kernel.ri
Read Only
U:RDoc::NormalModule[iI"Kernel:ET@0o:RDoc::Markup::Document:@parts[o;;[ : @fileI" ext/json/lib/json/common.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ ; I"'ext/objspace/lib/objspace/trace.rb;T; 0o;;[ ; I"ext/psych/lib/psych/y.rb;T; 0o;;[ ; I"kernel.rb;T; 0o;;[ ; I"lib/pp.rb;T; 0o;;[o:RDoc::Markup::Paragraph;[ I"PRubyGems adds the #gem method to allow activation of specific gem versions ;TI"Pand overrides the #require method on Kernel to make gems appear as if they ;TI"Rlive on the <code>$LOAD_PATH</code>. See the documentation of these methods ;TI"for further detail.;T; I"(lib/rubygems/core_ext/kernel_gem.rb;T; 0o;;[ ; I",lib/rubygems/core_ext/kernel_require.rb;T; 0o;;[ ; I")lib/rubygems/core_ext/kernel_warn.rb;T; 0o;;[ ; I"lib/uri/common.rb;T; 0o;;[3o;;[I"GThe Kernel module is included by class Object, so its methods are ;TI"$available in every Ruby object.;To:RDoc::Markup::BlankLine o;;[I"JThe Kernel instance methods are documented in class Object while the ;TI"Mmodule methods are documented here. These methods are called without a ;TI"8receiver and thus can be called in functional form:;T@1o:RDoc::Markup::Verbatim;[I"%sprintf "%.1f", 1.234 #=> "1.2" ;T:@format0S:RDoc::Markup::Heading: leveli: textI"What's Here;T@1o;;[I":\Module \Kernel provides methods that are useful for:;T@1o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o;;[I"2{Converting}[#module-Kernel-label-Converting];To;;0;[o;;[I".{Querying}[#module-Kernel-label-Querying];To;;0;[o;;[I",{Exiting}[#module-Kernel-label-Exiting];To;;0;[o;;[I"2{Exceptions}[#module-Kernel-label-Exceptions];To;;0;[o;;[I""{IO}[#module-Kernel-label-IO];To;;0;[o;;[I"({Procs}[#module-Kernel-label-Procs];To;;0;[o;;[I",{Tracing}[#module-Kernel-label-Tracing];To;;0;[o;;[I"6{Subprocesses}[#module-Kernel-label-Subprocesses];To;;0;[o;;[I",{Loading}[#module-Kernel-label-Loading];To;;0;[o;;[I".{Yielding}[#module-Kernel-label-Yielding];To;;0;[o;;[I"8{Random Values}[#module-Kernel-label-Random+Values];To;;0;[o;;[I"({Other}[#module-Kernel-label-Other];T@1S;;i;I"Converting;T@1o;;;;[o;;0;[o;;: NOTE;[o;;[I"{#Array}[#method-i-Array];T;[o;;[I"2Returns an Array based on the given argument.;To;;0;[o;;;;[o;;[I""{#Complex}[#method-i-Complex];T;[o;;[I"4Returns a Complex based on the given arguments.;To;;0;[o;;;;[o;;[I"{#Float}[#method-i-Float];T;[o;;[I"2Returns a Float based on the given arguments.;To;;0;[o;;;;[o;;[I"{#Hash}[#method-i-Hash];T;[o;;[I"0Returns a Hash based on the given argument.;To;;0;[o;;;;[o;;[I""{#Integer}[#method-i-Integer];T;[o;;[I"5Returns an Integer based on the given arguments.;To;;0;[o;;;;[o;;[I"${#Rational}[#method-i-Rational];T;[o;;[I"Returns a Rational ;TI""based on the given arguments.;To;;0;[o;;;;[o;;[I" {#String}[#method-i-String];T;[o;;[I"2Returns a String based on the given argument.;T@1S;;i;I" Querying;T@1o;;;;[o;;0;[o;;;;[o;;[I"({#__callee__}[#method-i-__callee__];T;[o;;[I"Returns the called name ;TI"'of the current method as a symbol.;To;;0;[o;;;;[o;;[I""{#__dir__}[#method-i-__dir__];T;[o;;[I"'Returns the path to the directory ;TI"-from which the current method is called.;To;;0;[o;;;;[o;;[I"({#__method__}[#method-i-__method__];T;[o;;[I"Returns the name ;TI"'of the current method as a symbol.;To;;0;[o;;;;[o;;[I"#autoload?;T;[o;;[I"GReturns the file to be loaded when the given module is referenced.;To;;0;[o;;;;[o;;[I" #binding;T;[o;;[I"<Returns a Binding for the context at the point of call.;To;;0;[o;;;;[o;;[I"#block_given?;T;[o;;[I"@Returns +true+ if a block was passed to the calling method.;To;;0;[o;;;;[o;;[I"#caller;T;[o;;[I"@Returns the current execution stack as an array of strings.;To;;0;[o;;;;[o;;[I"#caller_locations;T;[o;;[I"5Returns the current execution stack as an array ;TI",of Thread::Backtrace::Location objects.;To;;0;[o;;;;[o;;[I"#class;T;[o;;[I"!Returns the class of +self+.;To;;0;[o;;;;[o;;[I" #frozen?;T;[o;;[I"&Returns whether +self+ is frozen.;To;;0;[o;;;;[o;;[I"#global_variables;T;[o;;[I"5Returns an array of global variables as symbols.;To;;0;[o;;;;[o;;[I"#local_variables;T;[o;;[I"4Returns an array of local variables as symbols.;To;;0;[o;;;;[o;;[I" #test;T;[o;;[I"HPerforms specified tests on the given single file or pair of files.;T@1S;;i;I"Exiting;T@1o;;;;[ o;;0;[o;;;;[o;;[I"#abort;T;[o;;[I"BExits the current process after printing the given arguments.;To;;0;[o;;;;[o;;[I" #at_exit;T;[o;;[I"5Executes the given block when the process exits.;To;;0;[o;;;;[o;;[I" #exit;T;[o;;[I"<Exits the current process after calling any registered ;TI"+at_exit+ handlers.;To;;0;[o;;;;[o;;[I"#exit!;T;[o;;[I">Exits the current process without calling any registered ;TI"+at_exit+ handlers.;T@1S;;i;I"Exceptions;T@1o;;;;[o;;0;[o;;;;[o;;[I"#catch;T;[o;;[I"AExecutes the given block, possibly catching a thrown object.;To;;0;[o;;;;[o;;[I"#raise (aliased as #fail);T;[o;;[I"6Raises an exception based on the given arguments.;To;;0;[o;;;;[o;;[I"#throw;T;[o;;[I"CReturns from the active catch block waiting for the given tag.;T@1S;;i;I"\IO;T@1o;;;;[o;;0;[o;;;;[o;;[I" #gets;T;[o;;[I"MReturns and assigns to <tt>$_</tt> the next line from the current input.;To;;0;[o;;;;[o;;[I" #open;T;[o;;[I"MCreates an IO object connected to the given stream, file, or subprocess.;To;;0;[o;;;;[o;;[I"#p;T;[o;;[I"EPrints the given objects' inspect output to the standard output.;To;;0;[o;;;;[o;;[I"#pp;T;[o;;[I"-Prints the given objects in pretty form.;To;;0;[o;;;;[o;;[I"#print;T;[o;;[I"CPrints the given objects to standard output without a newline.;To;;0;[o;;;;[o;;[I"#printf;T;[o;;[I"GPrints the string resulting from applying the given format string ;TI"!to any additional arguments.;To;;0;[o;;;;[o;;[I" #putc;T;[o;;[I"FEquivalent to <tt.$stdout.putc(object)</tt> for the given object.;To;;0;[o;;;;[o;;[I" #puts;T;[o;;[I"IEquivalent to <tt>$stdout.puts(*objects)</tt> for the given objects.;To;;0;[o;;;;[o;;[I"#readline;T;[o;;[I"BSimilar to #gets, but raises an exception at the end of file.;To;;0;[o;;;;[o;;[I"#readlines;T;[o;;[I"DReturns an array of the remaining lines from the current input.;To;;0;[o;;;;[o;;[I"#select;T;[o;;[I"Same as IO.select.;T@1S;;i;I" Procs;T@1o;;;;[o;;0;[o;;;;[o;;[I"#lambda;T;[o;;[I"/Returns a lambda proc for the given block.;To;;0;[o;;;;[o;;[I" #proc;T;[o;;[I"0Returns a new Proc; equivalent to Proc.new.;T@1S;;i;I"Tracing;T@1o;;;;[o;;0;[o;;;;[o;;[I"#set_trace_func;T;[o;;[I"5Sets the given proc as the handler for tracing, ;TI"(or disables tracing if given +nil+.;To;;0;[o;;;;[o;;[I"#trace_var;T;[o;;[I"=Starts tracing assignments to the given global variable.;To;;0;[o;;;;[o;;[I"#untrace_var;T;[o;;[I"BDisables tracing of assignments to the given global variable.;T@1S;;i;I"Subprocesses;T@1o;;;;[ o;;0;[o;;;;[o;;[I"#`cmd`;T;[o;;[I"@Returns the standard output of running +cmd+ in a subshell.;To;;0;[o;;;;[o;;[I" #exec;T;[o;;[I"1Replaces current process with a new process.;To;;0;[o;;;;[o;;[I" #fork;T;[o;;[I"2Forks the current process into two processes.;To;;0;[o;;;;[o;;[I"#spawn;T;[o;;[I"DExecutes the given command and returns its pid without waiting ;TI"for completion.;To;;0;[o;;;;[o;;[I"#system;T;[o;;[I".Executes the given command in a subshell.;T@1S;;i;I"Loading;T@1o;;;;[ o;;0;[o;;;;[o;;[I"#autoload;T;[o;;[I"CRegisters the given file to be loaded when the given constant ;TI"is first referenced.;To;;0;[o;;;;[o;;[I" #load;T;[o;;[I"Loads the given Ruby file.;To;;0;[o;;;;[o;;[I" #require;T;[o;;[I"ALoads the given Ruby file unless it has already been loaded.;To;;0;[o;;;;[o;;[I"#require_relative;T;[o;;[I"<Loads the Ruby file path relative to the calling file, ;TI"'unless it has already been loaded.;T@1S;;i;I" Yielding;T@1o;;;;[o;;0;[o;;;;[o;;[I" #tap;T;[o;;[I"6Yields +self+ to the given block; returns +self+.;To;;0;[o;;;;[o;;[I"##then (aliased as #yield_self);T;[o;;[I" Yields +self+ to the block ;TI")and returns the result of the block.;T@1S;;i;I"\Random Values;T@1o;;;;[o;;0;[o;;;;[o;;[I" #rand;T;[o;;[I"3Returns a pseudo-random floating point number ;TI""strictly between 0.0 and 1.0.;To;;0;[o;;;;[o;;[I"#srand;T;[o;;[I"DSeeds the pseudo-random number generator with the given number.;T@1S;;i;I" Other;T@1o;;;;[o;;0;[o;;;;[o;;[I" #eval;T;[o;;[I"-Evaluates the given string as Ruby code.;To;;0;[o;;;;[o;;[I" #loop;T;[o;;[I")Repeatedly executes the given block.;To;;0;[o;;;;[o;;[I"#sleep;T;[o;;[I"ASuspends the current thread for the given number of seconds.;To;;0;[o;;;;[o;;[I""#sprintf (aliased as #format);T;[o;;[I"0Returns the string resulting from applying ;TI"the given format string ;TI"!to any additional arguments.;To;;0;[o;;;;[o;;[I" #syscall;T;[o;;[I"#Runs an operating system call.;To;;0;[o;;;;[o;;[I" #trap;T;[o;;[I".Specifies the handling of system signals.;To;;0;[o;;;;[o;;[I" #warn;T;[o;;[I"=Issue a warning based on the given messages and options.;T; I" object.c;T; 0o;;[ ; I"prelude.rb;T; 0o;;[ ; I"warning.rb;T; 0; 0; 0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[[I"URI;TI"lib/uri/common.rb;T[I"pp;TI"lib/pp.rb;T[I" instance;T[[;[ [;[ [;[X[I" Array;TI" object.c;T[I"BigDecimal;TI" ext/bigdecimal/bigdecimal.c;T[I"Complex;TI"complex.c;T[I" Float;TI"kernel.rb;T[I" Hash;T@�[I"Integer;T@�[I" JSON;TI" ext/json/lib/json/common.rb;T[I" Pathname;TI"ext/pathname/pathname.c;T[I" Rational;TI"rational.c;T[I"String;T@�[@�@�[I"__callee__;TI"eval.c;T[I"__dir__;T@�[I"__method__;T@�[I"`;TI" io.c;T[I" abort;TI"process.c;T[I"at_exit;TI"eval_jump.c;T[I" autoload;TI"load.c;T[I"autoload?;T@�[I"binding;TI"proc.c;T[I"block_given?;TI"vm_eval.c;T[I"callcc;TI"cont.c;T[I"caller;TI"vm_backtrace.c;T[I"caller_locations;T@�[I" catch;T@�[I" chomp;TI"ruby.c;T[I" chop;T@�[I" class;T@�[I" clone;T@�[I" eval;T@�[I" exec;T@�[I" exit;T@�[I" exit!;T@�[I" fail;T@�[I" fork;T@�[I"format;T@�[I"frozen?;T@�[I"gem;TI"(lib/rubygems/core_ext/kernel_gem.rb;T[I"gem_original_require;TI",lib/rubygems/core_ext/kernel_require.rb;T[I" gets;T@�[I"global_variables;T@�[I" gsub;T@�[I"iterator?;T@�[I"j;T@�[I"jj;T@�[I"lambda;T@�[I" load;T@�[I"local_variables;T@�[I" loop;T@�[I" open;T@�[I"p;T@�[@�@�[I"pretty_inspect;T@�[I" print;T@�[I"printf;T@�[I" proc;T@�[I" putc;T@�[I" puts;T@�[I" raise;T@�[I" rand;TI" random.c;T[I" readline;T@�[I"readlines;T@�[I"require;T@�[I"require_relative;T@�[I"select;T@�[I"set_trace_func;TI"vm_trace.c;T[I" sleep;T@�[I" spawn;T@�[I"sprintf;T@�[I" srand;T@[I"sub;T@�[I"syscall;T@�[I"system;T@�[I"tap;T@�[I" test;TI"file.c;T[I" then;T@�[I" throw;T@�[I"trace_var;T@�[I" trap;TI" signal.c;T[I"untrace_var;T@�[I" warn;TI"warning.rb;T[I"y;TI"ext/psych/lib/psych/y.rb;T[I"yield_self;T@�[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[$I"complex.c;TI"cont.c;TI"eval.c;TI"eval_jump.c;TI" ext/bigdecimal/bigdecimal.c;TI" ext/json/lib/json/common.rb;TI"'ext/objspace/lib/objspace/trace.rb;TI"ext/pathname/pathname.c;TI"ext/psych/lib/psych/y.rb;TI"file.c;TI" io.c;TI"kernel.rb;TI"lib/pp.rb;TI"(lib/rubygems/core_ext/kernel_gem.rb;TI",lib/rubygems/core_ext/kernel_require.rb;TI")lib/rubygems/core_ext/kernel_warn.rb;TI"lib/uri/common.rb;TI"lib/weakref.rb;TI"load.c;TI" object.c;TI"prelude.rb;TI"proc.c;TI"process.c;TI" random.c;TI"rational.c;TI"ruby.c;TI" signal.c;TI"vm_backtrace.c;TI"vm_eval.c;TI"vm_trace.c;TI"warning.rb;T@scRDoc::TopLevel
💾 Save Changes
❌ Cancel