D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Kernel
/
Filename :
cdesc-Kernel.ri
back
Copy
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;;[ ; 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/syntax_suggest/core_ext.rb;T; 0o;;[ ; I"lib/uri/common.rb;T; 0o;;[3o:RDoc::Markup::Paragraph;[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@.o:RDoc::Markup::Verbatim;[I"%sprintf "%.1f", 1.234 #=> "1.2" ;T:@format0S:RDoc::Markup::Heading: leveli: textI"What's Here;T@.o;;[I":\Module \Kernel provides methods that are useful for:;T@.o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o;;[I"-{Converting}[rdoc-ref:Kernel@Converting];To;;0;[o;;[I"){Querying}[rdoc-ref:Kernel@Querying];To;;0;[o;;[I"'{Exiting}[rdoc-ref:Kernel@Exiting];To;;0;[o;;[I"-{Exceptions}[rdoc-ref:Kernel@Exceptions];To;;0;[o;;[I"{IO}[rdoc-ref:Kernel@IO];To;;0;[o;;[I"#{Procs}[rdoc-ref:Kernel@Procs];To;;0;[o;;[I"'{Tracing}[rdoc-ref:Kernel@Tracing];To;;0;[o;;[I"1{Subprocesses}[rdoc-ref:Kernel@Subprocesses];To;;0;[o;;[I"'{Loading}[rdoc-ref:Kernel@Loading];To;;0;[o;;[I"){Yielding}[rdoc-ref:Kernel@Yielding];To;;0;[o;;[I"3{Random Values}[rdoc-ref:Kernel@Random+Values];To;;0;[o;;[I"#{Other}[rdoc-ref:Kernel@Other];T@.S;;i;I"Converting;T@.o;;;;[o;;0;[o;;[I":#Array: Returns an Array based on the given argument.;To;;0;[o;;[I">#Complex: Returns a Complex based on the given arguments.;To;;0;[o;;[I":#Float: Returns a Float based on the given arguments.;To;;0;[o;;[I"7#Hash: Returns a Hash based on the given argument.;To;;0;[o;;[I"?#Integer: Returns an Integer based on the given arguments.;To;;0;[o;;[I"@#Rational: Returns a Rational based on the given arguments.;To;;0;[o;;[I";#String: Returns a String based on the given argument.;T@.S;;i;I" Querying;T@.o;;;;[o;;0;[o;;[I"L#__callee__: Returns the called name of the current method as a symbol.;To;;0;[o;;[I"H#__dir__: Returns the path to the directory from which the current ;TI"method is called.;To;;0;[o;;[I"E#__method__: Returns the name of the current method as a symbol.;To;;0;[o;;[I"S#autoload?: Returns the file to be loaded when the given module is referenced.;To;;0;[o;;[I"F#binding: Returns a Binding for the context at the point of call.;To;;0;[o;;[I"O#block_given?: Returns +true+ if a block was passed to the calling method.;To;;0;[o;;[I"I#caller: Returns the current execution stack as an array of strings.;To;;0;[o;;[I"H#caller_locations: Returns the current execution stack as an array ;TI",of Thread::Backtrace::Location objects.;To;;0;[o;;[I")#class: Returns the class of +self+.;To;;0;[o;;[I"0#frozen?: Returns whether +self+ is frozen.;To;;0;[o;;[I"H#global_variables: Returns an array of global variables as symbols.;To;;0;[o;;[I"F#local_variables: Returns an array of local variables as symbols.;To;;0;[o;;[I"O#test: Performs specified tests on the given single file or pair of files.;T@.S;;i;I"Exiting;T@.o;;;;[ o;;0;[o;;[I"J#abort: Exits the current process after printing the given arguments.;To;;0;[o;;[I"?#at_exit: Executes the given block when the process exits.;To;;0;[o;;[I"C#exit: Exits the current process after calling any registered ;TI"+at_exit+ handlers.;To;;0;[o;;[I"F#exit!: Exits the current process without calling any registered ;TI"+at_exit+ handlers.;T@.S;;i;I"Exceptions;T@.o;;;;[o;;0;[o;;[I"I#catch: Executes the given block, possibly catching a thrown object.;To;;0;[o;;[I"Q#raise (aliased as #fail): Raises an exception based on the given arguments.;To;;0;[o;;[I"K#throw: Returns from the active catch block waiting for the given tag.;T@.S;;i;I"\IO;T@.o;;;;[o;;0;[o;;[I"3::pp: Prints the given objects in pretty form.;To;;0;[o;;[I"T#gets: Returns and assigns to <tt>$_</tt> the next line from the current input.;To;;0;[o;;[I"T#open: Creates an IO object connected to the given stream, file, or subprocess.;To;;0;[o;;[I"J#p: Prints the given objects' inspect output to the standard output.;To;;0;[o;;[I"K#print: Prints the given objects to standard output without a newline.;To;;0;[o;;[I"P#printf: Prints the string resulting from applying the given format string ;TI"!to any additional arguments.;To;;0;[o;;[I"M#putc: Equivalent to <tt.$stdout.putc(object)</tt> for the given object.;To;;0;[o;;[I"P#puts: Equivalent to <tt>$stdout.puts(*objects)</tt> for the given objects.;To;;0;[o;;[I"M#readline: Similar to #gets, but raises an exception at the end of file.;To;;0;[o;;[I"P#readlines: Returns an array of the remaining lines from the current input.;To;;0;[o;;[I" #select: Same as IO.select.;T@.S;;i;I" Procs;T@.o;;;;[o;;0;[o;;[I"8#lambda: Returns a lambda proc for the given block.;To;;0;[o;;[I"7#proc: Returns a new Proc; equivalent to Proc.new.;T@.S;;i;I"Tracing;T@.o;;;;[o;;0;[o;;[I"F#set_trace_func: Sets the given proc as the handler for tracing, ;TI"(or disables tracing if given +nil+.;To;;0;[o;;[I"I#trace_var: Starts tracing assignments to the given global variable.;To;;0;[o;;[I"P#untrace_var: Disables tracing of assignments to the given global variable.;T@.S;;i;I"Subprocesses;T@.o;;;;[ o;;0;[o;;[I"M{\`command`}[rdoc-ref:Kernel#`]: Returns the standard output of running ;TI"+command+ in a subshell.;To;;0;[o;;[I"8#exec: Replaces current process with a new process.;To;;0;[o;;[I"9#fork: Forks the current process into two processes.;To;;0;[o;;[I"L#spawn: Executes the given command and returns its pid without waiting ;TI"for completion.;To;;0;[o;;[I"7#system: Executes the given command in a subshell.;T@.S;;i;I"Loading;T@.o;;;;[ o;;0;[o;;[I"N#autoload: Registers the given file to be loaded when the given constant ;TI"is first referenced.;To;;0;[o;;[I"&#load: Loads the given Ruby file.;To;;0;[o;;[I"K#require: Loads the given Ruby file unless it has already been loaded.;To;;0;[o;;[I"O#require_relative: Loads the Ruby file path relative to the calling file, ;TI"'unless it has already been loaded.;T@.S;;i;I" Yielding;T@.o;;;;[o;;0;[o;;[I"<#tap: Yields +self+ to the given block; returns +self+.;To;;0;[o;;[I"@#then (aliased as #yield_self): Yields +self+ to the block ;TI")and returns the result of the block.;T@.S;;i;I"\Random Values;T@.o;;;;[o;;0;[o;;[I":#rand: Returns a pseudo-random floating point number ;TI""strictly between 0.0 and 1.0.;To;;0;[o;;[I"L#srand: Seeds the pseudo-random number generator with the given number.;T@.S;;i;I" Other;T@.o;;;;[o;;0;[o;;[I"4#eval: Evaluates the given string as Ruby code.;To;;0;[o;;[I"0#loop: Repeatedly executes the given block.;To;;0;[o;;[I"I#sleep: Suspends the current thread for the given number of seconds.;To;;0;[o;;[I"O#sprintf (aliased as #format): Returns the string resulting from applying ;TI"9the given format string to any additional arguments.;To;;0;[o;;[I"-#syscall: Runs an operating system call.;To;;0;[o;;[I"5#trap: Specifies the handling of system signals.;To;;0;[o;;[I"D#warn: 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[[I"URI;TI"lib/uri/common.rb;T[I"pp;TI"lib/pp.rb;T[:protected[ [:private[ [I" instance;T[[;[N[I"__callee__;TI"eval.c;T[I"__dir__;T@[I"__method__;T@[I"`;TI" io.c;T[I" Array;TI" object.c;T[I"Complex;TI"complex.c;T[I" Float;TI"kernel.rb;T[I" Hash;T@[I"Integer;T@[I" Pathname;TI"ext/pathname/pathname.c;T[I" Rational;TI"rational.c;T[I"String;T@[I" abort;TI"process.c;T[I"at_exit;TI"eval_jump.c;T[I" autoload;TI"load.c;T[I"autoload?;T@3[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@A[I" catch;T@;[I" chomp;TI"ruby.c;T[I" chop;T@H[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" gets;T@[I"global_variables;T@[I" gsub;T@H[I"iterator?;T@;[I"lambda;T@8[I" load;T@3[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@8[I" putc;T@[I" puts;T@[I" raise;T@[I" rand;TI" random.c;T[I" readline;T@[I"readlines;T@[I"require_relative;T@3[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@H[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"yield_self;T@[;[ [;[ [I" JSON;TI" ext/json/lib/json/common.rb;T[@�@�[I"gem;TI"(lib/rubygems/core_ext/kernel_gem.rb;T[I"j;T@�[I"jj;T@�[@@[I"require;TI",lib/rubygems/core_ext/kernel_require.rb;T[I"y;TI"ext/psych/lib/psych/y.rb;T[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[$I"complex.c;TI"cont.c;TI"eval.c;TI"eval_jump.c;T@@I"ext/pathname/pathname.c;T@I"file.c;TI" io.c;T@@@@@!@$@'I"lib/weakref.rb;TI"load.c;T@�@�I"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;T@�@�cRDoc::TopLevel