1
0
Fork 0
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:
Steven Harman 2014-06-24 16:30:03 -04:00
parent 0fff769394
commit 401c910154
2 changed files with 2 additions and 2 deletions

View file

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

View file

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