mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
<nov at yo.rim.or.jp> in [ruby-dev:41387]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0344bece9f
commit
948185248c
2 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue May 25 01:46:49 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
|
||||||
|
<nov at yo.rim.or.jp> in [ruby-dev:41387].
|
||||||
|
|
||||||
Mon May 24 23:04:41 2010 Tanaka Akira <akr@fsij.org>
|
Mon May 24 23:04:41 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* error.c: fix wrong exception class name in rdoc.
|
* error.c: fix wrong exception class name in rdoc.
|
||||||
|
|
15
vm_eval.c
15
vm_eval.c
|
@ -1536,7 +1536,7 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* caller(start=1) -> Array or nil
|
* caller(start=1) -> array or nil
|
||||||
*
|
*
|
||||||
* Returns the current execution stack---an array containing strings in
|
* Returns the current execution stack---an array containing strings in
|
||||||
* the form ``<em>file:line</em>'' or ``<em>file:line: in
|
* the form ``<em>file:line</em>'' or ``<em>file:line: in
|
||||||
|
@ -1544,7 +1544,7 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
||||||
* determines the number of initial stack entries to omit from the
|
* determines the number of initial stack entries to omit from the
|
||||||
* result.
|
* result.
|
||||||
*
|
*
|
||||||
* Returns +nil+ if _start_ is greater than or equal to the size of
|
* Returns +nil+ if _start_ is greater than the size of
|
||||||
* current execution stack.
|
* current execution stack.
|
||||||
*
|
*
|
||||||
* def a(skip)
|
* def a(skip)
|
||||||
|
@ -1556,11 +1556,12 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
||||||
* def c(skip)
|
* def c(skip)
|
||||||
* b(skip)
|
* b(skip)
|
||||||
* end
|
* end
|
||||||
* c(0) #=> ["prog:2:in `a'", "prog:5:in `b'", "prog:8:in `c'", "prog:10"]
|
* c(0) #=> ["prog:2:in `a'", "prog:5:in `b'", "prog:8:in `c'", "prog:10:in `<main>'"]
|
||||||
* c(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11"]
|
* c(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11:in `<main>'"]
|
||||||
* c(2) #=> ["prog:8:in `c'", "prog:12"]
|
* c(2) #=> ["prog:8:in `c'", "prog:12:in `<main>'"]
|
||||||
* c(3) #=> ["prog:13"]
|
* c(3) #=> ["prog:13:in `<main>'"]
|
||||||
* c(4) #=> nil
|
* c(4) #=> []
|
||||||
|
* c(5) #=> nil
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue