summaryrefslogtreecommitdiff
path: root/lib/pry/commands/change_prompt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/commands/change_prompt.rb')
-rw-r--r--lib/pry/commands/change_prompt.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/pry/commands/change_prompt.rb b/lib/pry/commands/change_prompt.rb
index 13d36cbb..f20b741a 100644
--- a/lib/pry/commands/change_prompt.rb
+++ b/lib/pry/commands/change_prompt.rb
@@ -11,16 +11,12 @@ class Pry::Command::ChangePrompt < Pry::ClassCommand
BANNER
def process(prompt)
- if prompt_map.key?(prompt)
- _pry_.prompt = prompt_map[prompt][:value]
+ if Pry::Prompt.all.key?(prompt)
+ _pry_.prompt = Pry::Prompt.all[prompt][:value]
else
raise Pry::CommandError, "'#{prompt}' isn't a known prompt!"
end
end
-private
- def prompt_map
- Pry::Prompt::MAP
- end
Pry::Commands.add_command(self)
end