summaryrefslogtreecommitdiff
path: root/lib/irb/cmd/step.rb
blob: d3d0f162915b661d1774b6780bb9bf5c3cc96406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require_relative "debug"

module IRB
  # :stopdoc:

  module ExtendCommand
    class Step < DebugCommand
      def execute(*args)
        # Run `next` first to move out of binding.irb
        super(pre_cmds: "next", do_cmds: ["step", *args].join(" "))
      end
    end
  end

  # :startdoc:
end