Sha256: 93480402b535e0bb53be00f6dd3cb9c44bcd323851d29efe12ea02b9c186bce3
Contents?: true
Size: 594 Bytes
Versions: 7
Compression:
Stored size: 594 Bytes
Contents
module Mack module Utils # :nodoc: module Ansi # :nodoc: module Color def self.wrap(color, string) "\e[#{Mack::Utils::Ansi::ColorRegistry.registered_items[color.to_sym] || 0}m#{string}\e[0m" end end # Color class ColorRegistry < Mack::Utils::RegistryMap def initial_state { :blue => 34, :black => 30, :red => 31, :green => 32, :yellow => 33, :magenta => 35, :purple => 35, :cyan => 36, :white => 37, :clear => 0 } end end end # Ansi end # Utils end # Mack
Version data entries
7 entries across 7 versions & 1 rubygems