Sha256: 5be7e7db3149bc401d5f554ea62d69e5eab52089270507c88c9e811d1609098f

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 Bytes

Contents

module Byebug
  #
  # Processes commands when there's not program running
  #
  class ControlProcessor < CommandProcessor
    def initialize(context = nil)
      @context = context
    end

    #
    # Available commands
    #
    def commands
      super.select(&:allow_in_control)
    end

    #
    # Prompt shown before reading a command.
    #
    def prompt
      '(byebug:ctrl) '
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
byebug-8.1.0 lib/byebug/processors/control_processor.rb
byebug-8.0.1 lib/byebug/processors/control_processor.rb
byebug-8.0.0 lib/byebug/processors/control_processor.rb
byebug-7.0.0 lib/byebug/processors/control_processor.rb