class Test::Unit::MixColor
Attributes
colors[R]
Public Class Methods
new(colors)
click to toggle source
# File test-unit-3.3.7/lib/test/unit/color.rb, line 111 def initialize(colors) @colors = colors end
Public Instance Methods
+(other)
click to toggle source
# File test-unit-3.3.7/lib/test/unit/color.rb, line 125 def +(other) self.class.new([self, other]) end
==(other)
click to toggle source
# File test-unit-3.3.7/lib/test/unit/color.rb, line 129 def ==(other) self.class === other and colors == other.colors end
escape_sequence()
click to toggle source
# File test-unit-3.3.7/lib/test/unit/color.rb, line 121 def escape_sequence "\e[#{sequence.join(';')}m" end
sequence()
click to toggle source
# File test-unit-3.3.7/lib/test/unit/color.rb, line 115 def sequence @colors.inject([]) do |result, color| result + color.sequence end end