From 32e754c8d46afab4090b5971dda6b4e491d04bd2 Mon Sep 17 00:00:00 2001 From: zzak Date: Sat, 2 Feb 2013 05:04:54 +0000 Subject: [PATCH] * lib/debug.rb: Documentation for DEBUGGER__ class methods based on patch by Vincent Batts [ruby-core:51253] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/debug.rb | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4dea772e63..0cd7a75ee0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Feb 2 14:05:00 2013 Zachary Scott + + * lib/debug.rb: Documentation for DEBUGGER__ class methods based on + patch by Vincent Batts [ruby-core:51253] + Sat Feb 2 13:37:00 2013 Zachary Scott * lib/net/smtp.rb: Fix rdoc title for Net::SMTP diff --git a/lib/debug.rb b/lib/debug.rb index 0cf81c0885..40886b14a6 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -891,22 +891,34 @@ EOHELP @stdout = STDOUT class << DEBUGGER__ + # Returns the IO used as stdout. Defaults to STDOUT def stdout @stdout end + # Sets the IO used as stdout. Defaults to STDOUT def stdout=(s) @stdout = s end + # Returns the display expression list + # + # See DEBUGGER__ for more usage def display @display end + # Returns the list of break points where execution will be stopped. + # + # See DEBUGGER__ for more useage def break_points @break_points end + # Returns the list of waiting threads. + # + # When stepping through the traces of a function, thread gets suspended, to + # be resumed later. def waiting @waiting end