summaryrefslogtreecommitdiff
path: root/lib/irb/command/backtrace.rb
blob: 47e5e60724029de1f2dc9e86250de9eaaa4eac18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require_relative "debug"

module IRB
  # :stopdoc:

  module Command
    class Backtrace < DebugCommand
      def self.transform_args(args)
        args&.dump
      end

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

  # :startdoc:
end