1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

refactored setting of config options into their method

This commit is contained in:
John Mair 2011-05-23 22:29:02 +12:00
parent 2982f5c6b8
commit 198cff4349

View file

@ -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