summaryrefslogtreecommitdiff
path: root/lib/pry/pry_class.rb
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-06-09 17:07:20 +0300
committerKyrylo Silin <silin@kyrylo.org>2019-06-09 17:47:23 +0300
commit6e55df5a0f54f1c549c7a3c56b3b04771b6ad1ae (patch)
tree67b00a71c2b27dc4850e42b1366baacdc1ecc4f8 /lib/pry/pry_class.rb
parent7ce5ca70bb4a1ff447269bdde4cb5d07b8932c8a (diff)
downloadpry-6e55df5a0f54f1c549c7a3c56b3b04771b6ad1ae.tar.gz
Use Pry::Env where it makes sense
Diffstat (limited to 'lib/pry/pry_class.rb')
-rw-r--r--lib/pry/pry_class.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb
index 4f3e2326..414c6a5a 100644
--- a/lib/pry/pry_class.rb
+++ b/lib/pry/pry_class.rb
@@ -150,8 +150,8 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
# @example
# Pry.start(Object.new, :input => MyInput.new)
def self.start(target = nil, options = {})
- return if ENV['DISABLE_PRY']
- if ENV['FAIL_PRY']
+ return if Pry::Env['DISABLE_PRY']
+ if Pry::Env['FAIL_PRY']
raise 'You have FAIL_PRY set to true, which results in Pry calls failing'
end