Class: Byebug::ThreadCurrentCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::ThreadCurrentCommand
show all
- Defined in:
- lib/byebug/commands/threads.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match
Class Method Details
.description ⇒ Object
106
107
108
|
# File 'lib/byebug/commands/threads.rb', line 106
def description
%{th[read] [cur[rent]]\t\tshow current thread}
end
|
.names ⇒ Object
102
103
104
|
# File 'lib/byebug/commands/threads.rb', line 102
def names
%w(thread)
end
|
Instance Method Details
#execute ⇒ Object
97
98
99
|
# File 'lib/byebug/commands/threads.rb', line 97
def execute
display_context(@state.context)
end
|
#regexp ⇒ Object
93
94
95
|
# File 'lib/byebug/commands/threads.rb', line 93
def regexp
/^\s* th(?:read)? \s+ (?:cur(?:rent)?)? \s*$/x
end
|