Object
# File test-unit-3.3.4/lib/test/unit/color.rb, line 111 def initialize(colors) @colors = colors end
# File test-unit-3.3.4/lib/test/unit/color.rb, line 125 def +(other) self.class.new([self, other]) end
# File test-unit-3.3.4/lib/test/unit/color.rb, line 129 def ==(other) self.class === other and colors == other.colors end
# File test-unit-3.3.4/lib/test/unit/color.rb, line 121 def escape_sequence "\e[#{sequence.join(';')}m" end
# File test-unit-3.3.4/lib/test/unit/color.rb, line 115 def sequence @colors.inject([]) do |result, color| result + color.sequence end end
This page was generated for Ruby 2.7.5
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.