Sha256: 24f60dade87694bcd03751a0b06495cdd581864db9e7a100e1a0e78b5bfd3345
Contents?: true
Size: 785 Bytes
Versions: 3
Compression:
Stored size: 785 Bytes
Contents
# frozen_string_literal: true module RubyJard module Commands # Command used to explore stacktrace. class UpCommand < Pry::ClassCommand include RubyJard::Commands::ValidationHelpers group 'RubyJard' description 'Explore the frames above the current stopped line in the backtrace' match 'up' banner <<-BANNER Usage: up [-h] [times] Examples: up up 1 up 7 Explore the frames above the current stopped line in the backtrace. All the C frames will be skipped. BANNER def process times = validate_positive_integer!(args.first || 1) RubyJard::ControlFlow.dispatch(:up, times: times.to_i) 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.3.1 | lib/ruby_jard/commands/up_command.rb |
ruby_jard-0.3.0 | lib/ruby_jard/commands/up_command.rb |
ruby_jard-0.2.3 | lib/ruby_jard/commands/up_command.rb |