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
|
||||||
end
|
end
|
||||||
|
|
||||||
# Set all the configurable options back to their default values
|
def self.set_config_options
|
||||||
def self.reset_defaults
|
|
||||||
config.input = Readline
|
config.input = Readline
|
||||||
config.output = $stdout
|
config.output = $stdout
|
||||||
config.commands = Pry::Commands
|
config.commands = Pry::Commands
|
||||||
|
@ -238,6 +237,11 @@ class Pry
|
||||||
config.color = true
|
config.color = true
|
||||||
config.pager = true
|
config.pager = true
|
||||||
config.editor = default_editor_for_platform
|
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
|
@custom_completions = DEFAULT_CUSTOM_COMPLETIONS
|
||||||
@should_load_rc = true
|
@should_load_rc = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue