class Pry::Command::ChangePrompt

Public Instance Methods

process(prompt) click to toggle source
# File lib/pry/commands/change_prompt.rb, line 13
def process(prompt)
  if prompt_map.key?(prompt)
    _pry_.prompt = prompt_map[prompt][:value]
  else
    raise Pry::CommandError, "'#{prompt}' isn't a known prompt!"
  end
end