Sha256: d41851585c51d4275e61f021f809e73cfcf85d886123a3e1a63c24dbb279554c

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to Step into the execution of the current line.
    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
        RubyJard::ControlFlow.dispatch(:step)
      end
    end
  end
end

Pry::Commands.add_command(RubyJard::Commands::StepCommand)
Pry::Commands.alias_command 's', 'step'

Version data entries

2 entries across 2 versions & 1 rubygems

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