diff options
| -rw-r--r-- | lib/irb/color.rb | 2 | ||||
| -rw-r--r-- | test/irb/test_color.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb index 201aecac30..87f6d88ae1 100644 --- a/lib/irb/color.rb +++ b/lib/irb/color.rb @@ -46,7 +46,7 @@ module IRB # :nodoc: end def inspect_colorable?(obj) - if obj.is_a?(Class) && obj.name + if obj.is_a?(Module) && obj.name return true end diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb index 8a59374691..2b43b2cd32 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -55,6 +55,7 @@ module TestIRB /reg/ => true, Object.new => false, Struct => true, + Test => true, Struct.new(:a) => false, Struct.new(:a).new(1) => false, }.each do |object, result| |
