diff options
author | 0xAB <0xAB@protonmail.com> | 2017-09-01 20:19:56 +0100 |
---|---|---|
committer | 0xAB <0xAB@protonmail.com> | 2017-09-01 20:19:56 +0100 |
commit | 9d22bb14fa4fccc12baebb93a0d92c5a5e1123d7 (patch) | |
tree | 171ec32fb45f1629899a8f8ef255026ff39d505e | |
parent | dfa85e9f5ff69bc86ac4e5fce78c19ac09ece911 (diff) | |
download | pry-9d22bb14fa4fccc12baebb93a0d92c5a5e1123d7.tar.gz |
don't capture Proc
-rw-r--r-- | lib/pry/helpers/colors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/helpers/colors.rb b/lib/pry/helpers/colors.rb index 010d7bf3..3a86f861 100644 --- a/lib/pry/helpers/colors.rb +++ b/lib/pry/helpers/colors.rb @@ -77,7 +77,7 @@ module Pry::Helpers::Colors # Executes the block with `Pry.config.color` set to false. # @yield # @return [void] - def no_color pry=(defined?(_pry_) && _pry_) || Pry, &block + def no_color pry=(defined?(_pry_) && _pry_) || Pry boolean = pry.config.color pry.config.color = false yield |