diff options
-rw-r--r-- | lib/irb/color.rb | 2 | ||||
-rw-r--r-- | test/irb/test_color.rb | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb index 29d414eccc..2e7a3e8bab 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, Class + when String, Symbol, Regexp, Integer, Float, FalseClass, TrueClass, NilClass true else false diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb index 61911cf1f1..8439fd54f5 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -53,7 +53,6 @@ module TestIRB ['foo', :bar] => true, { a: 4 } => true, /reg/ => true, - Struct => true, Object.new => false, Struct.new(:a) => false, Struct.new(:a).new(1) => false, |