Sha256: 0c419f8d8a1067b5fd6a8d16d6b5c74bcf0d9072c442fccf092c3034df64bda4

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 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
      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

        Step out of current frame and move to the execution of the upper frame

        Examples:
          step-out
      BANNER

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

Pry::Commands.add_command(RubyJard::Commands::StepOutCommand)
Pry::Commands.alias_command 'so', 'step-out'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_jard-0.2.2 lib/ruby_jard/commands/step_out_command.rb
ruby_jard-0.2.1 lib/ruby_jard/commands/step_out_command.rb