Class: RubyJard::Commands::StepOutCommand

Inherits:
Pry::ClassCommand
  • Object
show all
Includes:
ValidationHelpers
Defined in:
lib/ruby_jard/commands/step_out_command.rb

Overview

Command used to Step into the execution of the current line.

Instance Method Summary collapse

Methods included from ValidationHelpers

#validate_non_negative_integer!, #validate_positive_integer!, #validate_present!, #validate_range!

Instance Method Details

#processObject



24
25
26
27
28
# File 'lib/ruby_jard/commands/step_out_command.rb', line 24

def process
  times = validate_positive_integer!(args.first || 1)

  RubyJard::ControlFlow.dispatch(:step_out, times: times.to_i)
end