Sha256: e623b43ad85f8c1a0e02247dee415bf6f3f05aeeb714a04b6341484762012120
Contents?: true
Size: 882 Bytes
Versions: 3
Compression:
Stored size: 882 Bytes
Contents
# frozen_string_literal: true module RubyJard module Commands # Command used to Step into the execution of the current line. class StepOutCommand < Pry::ClassCommand include RubyJard::Commands::ValidationHelpers group 'RubyJard' description 'Step out of current frame and move to the execution of the upper frame' match 'step-out' banner <<-BANNER Usage: step-out [times] Examples: step-out step-out 1 step-out 7 Step out of current frame and move to the execution of the upper frame. BANNER def process times = validate_positive_integer!(args.first || 1) RubyJard::ControlFlow.dispatch(:step_out, times: times.to_i) end end end end Pry::Commands.add_command(RubyJard::Commands::StepOutCommand) Pry::Commands.alias_command 'so', 'step-out'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_jard-0.3.1 | lib/ruby_jard/commands/step_out_command.rb |
ruby_jard-0.3.0 | lib/ruby_jard/commands/step_out_command.rb |
ruby_jard-0.2.3 | lib/ruby_jard/commands/step_out_command.rb |