deivid-rodriguez/byebug

View on GitHub
lib/byebug/processors/control_processor.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require_relative "command_processor"

module Byebug
  #
  # Processes commands when there's not program running
  #
  class ControlProcessor < CommandProcessor
    #
    # Available commands
    #
    def commands
      super.select(&:allow_in_control)
    end

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