Class: Byebug::InterruptCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::InterruptCommand
show all
- Defined in:
- lib/byebug/commands/interrupt.rb
Overview
Interrupting execution of current thread.
Instance Attribute Summary
Attributes inherited from Command
#processor
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
#arguments, columnize, #context, #frame, help, #initialize, match, to_s
#camelize, #prettify
Class Method Details
.description ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/byebug/commands/interrupt.rb', line 14
def self.description
<<-EOD
int[errupt]
#{short_description}
EOD
end
|
.regexp ⇒ Object
10
11
12
|
# File 'lib/byebug/commands/interrupt.rb', line 10
def self.regexp
/^\s*int(?:errupt)?\s*$/
end
|
.short_description ⇒ Object
22
23
24
|
# File 'lib/byebug/commands/interrupt.rb', line 22
def self.short_description
'Interrupts the program'
end
|
Instance Method Details
#execute ⇒ Object
26
27
28
|
# File 'lib/byebug/commands/interrupt.rb', line 26
def execute
Byebug.thread_context(Thread.main).interrupt
end
|