Sha256: 1bfa075938fc1372f9be5bcb0a1d7d698868f8f2b85baf50f4dee29b4e1dfe7b
Contents?: true
Size: 612 Bytes
Versions: 17
Compression:
Stored size: 612 Bytes
Contents
module Minitest module Reporters module ANSI module Code def self.color? color_terminal = ENV['TERM'].to_s.downcase.include?("color") $stdout.tty? || color_terminal end if color? require 'ansi/code' include ::ANSI::Code extend ::ANSI::Code else def black(s = nil) block_given? ? yield : s end %w[ red green yellow blue magenta cyan white ].each do |color| alias_method color, :black end extend self end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems