Sha256: 937226b3eebc075f8bafb111c54db8dceadbdce5559fe7c3ea24fbfc999e5cfa

Contents?: true

Size: 580 Bytes

Versions: 3

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to explore stacktrace.
    class UpCommand < Pry::ClassCommand
      group 'RubyJard'
      description 'Explore the frames above the current stopped line in the backtrace'

      match 'up'

      banner <<-BANNER
      Usage: up

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

      Examples:
        up
      BANNER

      def process
        RubyJard::ControlFlow.dispatch(:up)
      end
    end
  end
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

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