class SpecTimer::Color
Constants
- COLOR_CONVERSION
Public Class Methods
background(string, color)
click to toggle source
# File lib/spec_timer/reporter.rb, line 39 def self.background(string, color) "\e[#{COLOR_CONVERSION[color] + 40}m#{string}\e[0m" end
text(string, color)
click to toggle source
# File lib/spec_timer/reporter.rb, line 35 def self.text(string, color) "\e[#{COLOR_CONVERSION[color] + 30}m#{string}\e[0m" end