Class: Debugger::FinishCommand
- Defined in:
- lib/ruby-debug/commands/stepping.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Command
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Command
commands, inherited, #initialize, load_commands, #match, method_missing, options
Constructor Details
This class inherits a constructor from Debugger::Command
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Debugger::Command
Class Method Details
.help(cmd) ⇒ Object
76 77 78 79 80 |
# File 'lib/ruby-debug/commands/stepping.rb', line 76 def help(cmd) %{ fin[ish]\treturn to outer frame } end |
.help_command ⇒ Object
72 73 74 |
# File 'lib/ruby-debug/commands/stepping.rb', line 72 def help_command 'finish' end |
Instance Method Details
#execute ⇒ Object
61 62 63 64 65 66 67 68 69 |
# File 'lib/ruby-debug/commands/stepping.rb', line 61 def execute if @state.frame_pos == @state.context.stack_size - 1 print_msg "\"finish\" not meaningful in the outermost frame." else @state.context.stop_frame = @state.frame_pos @state.frame_pos = 0 @state.proceed end end |
#regexp ⇒ Object
57 58 59 |
# File 'lib/ruby-debug/commands/stepping.rb', line 57 def regexp /^\s*fin(?:ish)?$/ end |