Object
# File test-unit-3.3.7/lib/test/unit/color.rb, line 111 def initialize(colors) @colors = colors end
# File test-unit-3.3.7/lib/test/unit/color.rb, line 125 def +(other) self.class.new([self, other]) end
# File test-unit-3.3.7/lib/test/unit/color.rb, line 129 def ==(other) self.class === other and colors == other.colors end
# File test-unit-3.3.7/lib/test/unit/color.rb, line 121 def escape_sequence "\e[#{sequence.join(';')}m" end
# 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
This page was generated for Ruby 3.0.1
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.44.2.