Sha256: 958e7dfdcadc8a50afd2c6bc93ab896e076fbed382b0fbd58dec7f3036aee5d8

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to explore stacktrace.
    # Data attached in the throw:
    # * command: constant symbol (:down)
    # * pry: current context pry instance
    class DownCommand < Pry::ClassCommand
      group 'RubyJard'
      description 'Explore the frames bellow the current stopped line in the backtrace'

      match 'down'

      banner <<-BANNER
      Usage: down

      Explore the frames bellow the current stopped line in the backtrace.

      Examples:
        down
      BANNER

      def process
        throw :control_flow, command: :down, pry: pry_instance
      end
    end
  end
end

Pry::Commands.add_command(RubyJard::Commands::DownCommand)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_jard-0.1.0 lib/ruby_jard/commands/down_command.rb