mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Class instance should be also colorable on IRB"
This reverts commit 6669c966d2
.
It seems to make tests fail... let me fix this later.
This commit is contained in:
parent
6669c966d2
commit
a429b3601f
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue