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:
parent
2982f5c6b8
commit
198cff4349
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue