Sha256: 9cc5e34ef204dacaf6aea49d81360e252ffe84254dd351df63b742d3262957c9

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to explore stacktrace.
    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
        RubyJard::ControlFlow.dispatch(:down)
      end
    end
  end
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_jard-0.2.2 lib/ruby_jard/commands/down_command.rb
ruby_jard-0.2.1 lib/ruby_jard/commands/down_command.rb
ruby_jard-0.2.0 lib/ruby_jard/commands/down_command.rb