mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Cleanup * interpreted as argument prefix warning
The splat was a bit ambiguous in these cases, resulting in a Ruby warning. Adding parens makes it explicit and silences the warning.
This commit is contained in:
parent
0fff769394
commit
401c910154
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ class Pry
|
|||
def_delegators :@plugin_manager, :plugins, :load_plugins, :locate_plugins
|
||||
|
||||
extend Pry::Config::Convenience
|
||||
config_shortcut *Pry::Config.shortcuts
|
||||
config_shortcut(*Pry::Config.shortcuts)
|
||||
|
||||
def prompt=(value)
|
||||
config.prompt = value
|
||||
|
|
|
@ -39,7 +39,7 @@ class Pry
|
|||
attr_reader :config
|
||||
|
||||
extend Pry::Config::Convenience
|
||||
config_shortcut *Pry::Config.shortcuts
|
||||
config_shortcut(*Pry::Config.shortcuts)
|
||||
EMPTY_COMPLETIONS = [].freeze
|
||||
|
||||
# Create a new {Pry} instance.
|
||||
|
|
Loading…
Reference in a new issue