module Pry::Memory::Prompt
Class responsible for replacing default prompt
@example
Pry::Memory::Prompt.replace # => prompt replaced Pry::Memory::Prompt.restore # => prompt restopred to the previous one
Constants
- PROMPT
Public Instance Methods
replace()
click to toggle source
# File lib/pry/memory/prompt.rb, line 25 def replace @old_prompt = Pry.prompt Pry.prompt = PROMPT end
restore()
click to toggle source
# File lib/pry/memory/prompt.rb, line 30 def restore Pry.prompt = Pry::DEFAULT_PROMPT end