class GroongaQueryLog::Command::Analyzer::ConsoleReporter::MixColor
Attributes
colors[R]
Public Class Methods
new(colors)
click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/console.rb, line 102 def initialize(colors) @colors = colors end
Public Instance Methods
+(other)
click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/console.rb, line 116 def +(other) self.class.new([self, other]) end
==(other)
click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/console.rb, line 120 def ==(other) self.class === other and colors == other.colors end
escape_sequence()
click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/console.rb, line 112 def escape_sequence "\e[#{sequence.join(';')}m" end
sequence()
click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/console.rb, line 106 def sequence @colors.inject([]) do |result, color| result + color.sequence end end