Class: Debugger::ThreadCurrentCommand
- Includes:
- ThreadFunctions
- Defined in:
- lib/ruby-debug/commands/threads.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Command
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ThreadFunctions
#debugger_thread?, #display_context
Methods inherited from Command
commands, inherited, #initialize, load_commands, #match, method_missing, options
Constructor Details
This class inherits a constructor from Debugger::Command
Class Method Details
.help(cmd) ⇒ Object
142 143 144 145 146 |
# File 'lib/ruby-debug/commands/threads.rb', line 142 def help(cmd) %{ th[read] c[ur[rent]]\t\tshow current thread } end |
.help_command ⇒ Object
138 139 140 |
# File 'lib/ruby-debug/commands/threads.rb', line 138 def help_command 'thread' end |
Instance Method Details
#execute ⇒ Object
133 134 135 |
# File 'lib/ruby-debug/commands/threads.rb', line 133 def execute display_context(@state.context) end |
#regexp ⇒ Object
129 130 131 |
# File 'lib/ruby-debug/commands/threads.rb', line 129 def regexp /^\s*th(?:read)?\s+c(?:ur(?:rent)?)?\s*$/ end |