summaryrefslogtreecommitdiff
path: root/lib/pry/pry_class.rb
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-10-13 03:09:29 +0800
committerKyrylo Silin <silin@kyrylo.org>2018-10-13 03:09:29 +0800
commitf33d82779a6ecbadc6a6deb196d4477829500b1b (patch)
tree42db65f6de53c1d74de1a52d50d1a546dc9fdcd6 /lib/pry/pry_class.rb
parent4f121a6a07a94dd5f7a71e75a406147d9d21568d (diff)
downloadpry-f33d82779a6ecbadc6a6deb196d4477829500b1b.tar.gz
rubocop: fix offences of the Style/HashSyntax cop
Diffstat (limited to 'lib/pry/pry_class.rb')
-rw-r--r--lib/pry/pry_class.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb
index c93e5fec..c3a63b6b 100644
--- a/lib/pry/pry_class.rb
+++ b/lib/pry/pry_class.rb
@@ -276,17 +276,17 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
# Pry.run_command "ls -av", :show_output => true
def self.run_command(command_string, options={})
options = {
- :target => TOPLEVEL_BINDING,
- :show_output => true,
- :output => Pry.config.output,
- :commands => Pry.config.commands
+ target: TOPLEVEL_BINDING,
+ show_output: true,
+ output: Pry.config.output,
+ commands: Pry.config.commands
}.merge!(options)
# :context for compatibility with <= 0.9.11.4
target = options[:context] || options[:target]
output = options[:show_output] ? options[:output] : StringIO.new
- pry = Pry.new(:output => output, :target => target, :commands => options[:commands])
+ pry = Pry.new(output: output, target: target, commands: options[:commands])
pry.eval command_string
nil
end