class String::Colorizer
Used to colorize strings for the shell
Public Class Methods
colors()
click to toggle source
Returns colors integer mapping
# File lib/tennpipes-assist/core_ext/string/colorize.rb, line 29 def self.colors @_colors ||= { :default => 9, :black => 30, :red => 31, :green => 32, :yellow => 33, :blue => 34, :magenta => 35, :cyan => 36, :white => 37 } end
modes()
click to toggle source
Returns modes integer mapping
# File lib/tennpipes-assist/core_ext/string/colorize.rb, line 44 def self.modes @_modes ||= { :default => 0, :bold => 1 } end