1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_backtrace.c: Update rdoc for Backtrace#label with @_ko1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-06-17 05:31:28 +00:00
parent c58dc63686
commit 354907d0f6
2 changed files with 24 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Mon Jun 17 14:27:54 2013 Zachary Scott <zachary@zacharyscott.net>
* vm_backtrace.c: Update rdoc for Backtrace#label with @_ko1
Mon Jun 17 13:04:01 2013 Akinori MUSHA <knu@iDaemons.org> Mon Jun 17 13:04:01 2013 Akinori MUSHA <knu@iDaemons.org>
* tool/ifchange (until): Fix the condition, although harmless in * tool/ifchange (until): Fix the condition, although harmless in

View file

@ -177,10 +177,27 @@ location_label(rb_backtrace_location_t *loc)
* *
* Usually consists of method, class, module, etc names with decoration. * Usually consists of method, class, module, etc names with decoration.
* *
* For example, using +caller_locations.rb+ from Thread::Backtrace::Location * Consider the following example:
*
* def foo
* puts caller_locations(0).first.label
*
* 1.times do
* puts caller_locations(0).first.label
*
* 1.times do
* puts caller_locations(0).first.label
* end
*
* end
* end
*
* The result of calling +foo+ is this:
*
* label: foo
* label: block in foo
* label: block (2 levels) in foo
* *
* loc = c(0..1).first
* loc.label #=> a
*/ */
static VALUE static VALUE
location_label_m(VALUE self) location_label_m(VALUE self)