Sha256: d45712116f43c18277eaf5413a7688f2c12ad91e8fb32b3ede40d6d7432c137b

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to Step into the execution of the current line.
    # Data attached in the throw:
    # * command: constant symbol (:step)
    # * pry: current context pry instance
    class StepCommand < Pry::ClassCommand
      group 'RubyJard'
      description 'Step into the execution of the current line'

      match 'step'

      banner <<-BANNER
        Usage: step

        Step into the execution of the current line

        Examples:
          step
      BANNER

      def process
        throw :control_flow, command: :step, pry: pry_instance
      end
    end
  end
end

Pry::Commands.add_command(RubyJard::Commands::StepCommand)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_jard-0.1.0 lib/ruby_jard/commands/step_command.rb