diff options
Diffstat (limited to 'lib/irb/command/catch.rb')
-rw-r--r-- | lib/irb/command/catch.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/irb/command/catch.rb b/lib/irb/command/catch.rb index 6b2edff5e5..655c77d8af 100644 --- a/lib/irb/command/catch.rb +++ b/lib/irb/command/catch.rb @@ -7,12 +7,8 @@ module IRB module Command class Catch < DebugCommand - def self.transform_args(args) - args&.dump - end - - def execute(*args) - super(pre_cmds: ["catch", *args].join(" ")) + def execute(arg) + execute_debug_command(pre_cmds: "catch #{arg}".rstrip) end end end |