summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-04-26 18:42:50 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-04-26 18:42:51 +0900
commit6669c966d2744f21315047d1725ad4494d15b8ba (patch)
tree564cfbc7b4d1e3ab291448e430314e6ce66194a2 /lib
parent52cfb17086998b9434c9c786bfcf827197216c9a (diff)
Class instance should be also colorable on IRB
inspect. Change is made with: `$ make -C .ruby sync-default-gems GEM=irb`
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/color.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb
index 2e7a3e8bab..29d414eccc 100644
--- a/lib/irb/color.rb
+++ b/lib/irb/color.rb
@@ -51,7 +51,7 @@ module IRB # :nodoc:
obj.all? { |k, v| inspect_colorable?(k) && inspect_colorable?(v) }
when Array
obj.all? { |o| inspect_colorable?(o) }
- when String, Symbol, Regexp, Integer, Float, FalseClass, TrueClass, NilClass
+ when String, Symbol, Regexp, Integer, Float, FalseClass, TrueClass, NilClass, Class
true
else
false