class Pry::Command::ListPrompts - pry-0.10.1 Documentation

# class Pry::Command::ListPrompts

### Public Instance Methods

process() click to toggle source

    # File lib/pry/commands/list_prompts.rb, line 12
    def process
      output.puts heading("Available prompts") + "\n"
      prompt_map.each do |name, prompt|
        output.write "Name: #{text.bold(name)}"
        output.puts selected_prompt?(prompt) ? selected_text : ""
        output.puts prompt[:description]
        output.puts
      end
    end