Class: Byebug::ThreadCurrentCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::ThreadCurrentCommand
show all
- Defined in:
- lib/byebug/commands/threads.rb
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, #print_subcmds, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
183
184
185
186
187
|
# File 'lib/byebug/commands/threads.rb', line 183
def help(cmd)
%{
th[read] [cur[rent]]\t\tshow current thread
}
end
|
.help_command ⇒ Object
179
180
181
|
# File 'lib/byebug/commands/threads.rb', line 179
def help_command
'thread'
end
|
Instance Method Details
#execute ⇒ Object
174
175
176
|
# File 'lib/byebug/commands/threads.rb', line 174
def execute
display_context(@state.context)
end
|
#regexp ⇒ Object
170
171
172
|
# File 'lib/byebug/commands/threads.rb', line 170
def regexp
/^\s*th(?:read)?\s*(?:cur(?:rent)?)?\s*$/
end
|