Class: IRB::ExtendCommand::DebuggerResumeCommand

Inherits:
Object
  • Object
show all
Defined in:
app/irb.rb

Overview

A base command class that resume execution

Direct Known Subclasses

Continue, Finish, Next, Quit, Step

Class Method Summary collapse

Class Method Details

.execute(conf, *opts) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/irb.rb', line 12

def self.execute(conf, *opts)
  name = 
    if self.name =~ /IRB::ExtendCommand::(\S+)/
      $1.downcase
    else
      'unknown'
    end
  $trepan_args = opts
  $trepan_command = 
    if $trepan_irb_statements 
      $trepan_irb_statements
    else
      ([name] + opts).join(' ')
    end
  
  throw :IRB_EXIT, name.to_sym
end