* 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
This commit is contained in:
zzak 2013-02-02 05:04:54 +00:00
Родитель e91fb5eb6f
Коммит 32e754c8d4
2 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sat Feb 2 14:05:00 2013 Zachary Scott <zachary@zacharyscott.net>
* 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 <zachary@zacharyscott.net>
* lib/net/smtp.rb: Fix rdoc title for Net::SMTP

Просмотреть файл

@ -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