From 198cff43496e9e7f671aac8ae218572963208448 Mon Sep 17 00:00:00 2001 From: John Mair Date: Mon, 23 May 2011 22:29:02 +1200 Subject: [PATCH] refactored setting of config options into their method --- lib/pry/pry_class.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb index d9ce9286..8a32d630 100644 --- a/lib/pry/pry_class.rb +++ b/lib/pry/pry_class.rb @@ -226,8 +226,7 @@ class Pry end end - # Set all the configurable options back to their default values - def self.reset_defaults + def self.set_config_options config.input = Readline config.output = $stdout config.commands = Pry::Commands @@ -238,6 +237,11 @@ class Pry config.color = true config.pager = true config.editor = default_editor_for_platform + end + + # Set all the configurable options back to their default values + def self.reset_defaults + set_config_options @custom_completions = DEFAULT_CUSTOM_COMPLETIONS @should_load_rc = true