Class: IRB::ExtendCommand::TrepanResumeCommand

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

Overview

A base command class that resume execution

Direct Known Subclasses

TContinue, TFinish, TNext, TQuit, TStep

Class Method Summary collapse

Class Method Details

.execute(conf, *opts) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'app/irb.rb', line 19

def self.execute(conf, *opts)
  name =
    if self.name =~ /IRB::ExtendCommand::(\S+)/
      $1[1..-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