| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Kernel/ |
Upload File : |
U:RDoc::AnyMethod[iI"caller:ETI"Kernel#caller;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JReturns the current execution stack---an array containing strings in ;TI"<the form <code>file:line</code> or <code>file:line: in ;TI"`method'</code>.;To:RDoc::Markup::BlankLine o; ; [I"KThe optional _start_ parameter determines the number of initial stack ;TI"/entries to omit from the top of the stack.;T@o; ; [I"PA second optional +length+ parameter can be used to limit how many entries ;TI"!are returned from the stack.;T@o; ; [I":Returns +nil+ if _start_ is greater than the size of ;TI"current execution stack.;T@o; ; [I"POptionally you can pass a range, which will return an array containing the ;TI"(entries within the specified range.;T@o:RDoc::Markup::Verbatim; [I"def a(skip) ;TI" caller(skip) ;TI" end ;TI"def b(skip) ;TI" a(skip) ;TI" end ;TI"def c(skip) ;TI" b(skip) ;TI" end ;TI"[c(0) #=> ["prog:2:in `a'", "prog:5:in `b'", "prog:8:in `c'", "prog:10:in `<main>'"] ;TI"Jc(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11:in `<main>'"] ;TI"9c(2) #=> ["prog:8:in `c'", "prog:12:in `<main>'"] ;TI"(c(3) #=> ["prog:13:in `<main>'"] ;TI"c(4) #=> [] ;TI"c(5) #=> nil;T:@format0: @fileI"vm_backtrace.c;T:0@omit_headings_from_table_of_contents_below0I"_caller(start=1, length=nil) -> array or nil caller(range) -> array or nil ;T0[ I"(*args);T@2FI"Kernel;TcRDoc::NormalModule00