summaryrefslogtreecommitdiff
path: root/lib/pry/pry_class.rb
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-11-04 17:34:24 +0800
committerKyrylo Silin <silin@kyrylo.org>2018-11-04 17:34:24 +0800
commit04d4f424e33b3ea8270e6b14219a1b2559b5fe0d (patch)
treed546a584b69dcf3893bdc8c2973545269bf8d708 /lib/pry/pry_class.rb
parentd2e306ca581352e967650264a8cbfc3a781e63fe (diff)
downloadpry-04d4f424e33b3ea8270e6b14219a1b2559b5fe0d.tar.gz
rubocop: fix offences regarding spaces
Fixes offences of the following cops: * Layout/SpaceAroundEqualsInParameterDefault * Layout/SpaceAroundOperators * Layout/SpaceBeforeBlockBraces * Layout/SpaceInsideBlockBraces
Diffstat (limited to 'lib/pry/pry_class.rb')
-rw-r--r--lib/pry/pry_class.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb
index 1931bca3..c63f83aa 100644
--- a/lib/pry/pry_class.rb
+++ b/lib/pry/pry_class.rb
@@ -117,7 +117,7 @@ class Pry
# Trap interrupts on jruby, and make them behave like MRI so we can
# catch them.
def self.load_traps
- trap('INT'){ raise Interrupt }
+ trap('INT') { raise Interrupt }
end
def self.load_win32console
@@ -166,7 +166,7 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
# @option options (see Pry#initialize)
# @example
# Pry.start(Object.new, :input => MyInput.new)
- def self.start(target=nil, options={})
+ def self.start(target = nil, options = {})
return if ENV['DISABLE_PRY']
if ENV['FAIL_PRY']
raise 'You have FAIL_PRY set to true, which results in Pry calls failing'
@@ -275,7 +275,7 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
# Pry.run_command "ls -m", :target => Pry
# @example Display command output.
# Pry.run_command "ls -av", :show_output => true
- def self.run_command(command_string, options={})
+ def self.run_command(command_string, options = {})
options = {
target: TOPLEVEL_BINDING,
show_output: true,