summaryrefslogtreecommitdiff
path: root/lib/pry/slop
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-03-23 20:00:33 +0200
committerKyrylo Silin <silin@kyrylo.org>2019-03-23 20:03:52 +0200
commit8d97eb84f19660e324a706e1640d2e1438108bea (patch)
treecca817002bfd14f1c9c48a3bca7ec7baf7f0a6a0 /lib/pry/slop
parent1a20b22984216492fb60fb0d6d1dbac6ce92cfc9 (diff)
downloadpry-8d97eb84f19660e324a706e1640d2e1438108bea.tar.gz
rubocop: disable Style/DoubleNegation
This cop makes sense to me, however a lot of our code has offences that are not fixable on the same level. To avoid them we'd need to redesign API of some classes, which isn't worth it.
Diffstat (limited to 'lib/pry/slop')
-rw-r--r--lib/pry/slop/option.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/slop/option.rb b/lib/pry/slop/option.rb
index 9f4a1621..fc77ba32 100644
--- a/lib/pry/slop/option.rb
+++ b/lib/pry/slop/option.rb
@@ -56,7 +56,7 @@ class Pry
@config.each_key do |key|
predicate = :"#{key}?"
unless self.class.method_defined?(predicate)
- self.class.__send__(:define_method, predicate) { !!@config[key] }
+ self.class.__send__(:define_method, predicate) { !@config.key?(key) }
end
end
end