diff options
author | 0xAB <0xAB@protonmail.com> | 2017-09-01 10:19:37 +0100 |
---|---|---|
committer | 0xAB <0xAB@protonmail.com> | 2017-09-01 10:19:37 +0100 |
commit | 8859e6c80030e1160cf171f826629358b2aed5b8 (patch) | |
tree | e37a293e9a07ecc7bf18482f8d3deed08e5fe5d3 | |
parent | 2b3441f221776b45dd2d0e226d7d5dfb654636e3 (diff) | |
download | pry-8859e6c80030e1160cf171f826629358b2aed5b8.tar.gz |
puts Pry::Helpers::Text.green("foo") respects Pry.color
-rw-r--r-- | lib/pry/helpers/text.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/helpers/text.rb b/lib/pry/helpers/text.rb index 0a3da786..3cf7c89d 100644 --- a/lib/pry/helpers/text.rb +++ b/lib/pry/helpers/text.rb @@ -17,7 +17,7 @@ class Pry } color_enabled = lambda do |pry| - (pry and pry.color) or (defined?(_pry_) and _pry_.color) + (pry and pry.color) or (defined?(_pry_) and _pry_.color) or Pry.color end COLORS.each_pair do |color, value| |