Class: IRB::ExtendCommand::Catch

Inherits:
DebugCommand show all
Defined in:
lib/irb/cmd/catch.rb

Constant Summary

Constants inherited from Debug

Debug::BINDING_IRB_FRAME_REGEXPS

Instance Attribute Summary

Attributes inherited from Nop

#irb_context

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DebugCommand

category, description

Methods inherited from Nop

category, description, execute, #initialize

Constructor Details

This class inherits a constructor from IRB::ExtendCommand::Nop

Class Method Details

.transform_args(args) ⇒ Object



10
11
12
# File 'lib/irb/cmd/catch.rb', line 10

def self.transform_args(args)
  args&.dump
end

Instance Method Details

#execute(*args) ⇒ Object



14
15
16
# File 'lib/irb/cmd/catch.rb', line 14

def execute(*args)
  super(pre_cmds: ["catch", *args].join(" "))
end