Sha256: 5bd2606258efac0f821410d1c2faa66b2f3b46c1021c648609016847f29255b3
Contents?: true
Size: 802 Bytes
Versions: 3
Compression:
Stored size: 802 Bytes
Contents
# frozen_string_literal: true module RubyJard module Commands # Command used to explore stacktrace. class DownCommand < Pry::ClassCommand include RubyJard::Commands::ValidationHelpers group 'RubyJard' description 'Explore the frames bellow the current stopped line in the backtrace' match 'down' banner <<-BANNER Usage: down [-h] [times] Examples: down down 1 down 7 Explore the frames bellow 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(:down, times: times.to_i) 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.3.1 | lib/ruby_jard/commands/down_command.rb |
ruby_jard-0.3.0 | lib/ruby_jard/commands/down_command.rb |
ruby_jard-0.2.3 | lib/ruby_jard/commands/down_command.rb |