Sha256: ef0f7197f04962322ad70db5a143f9dc1229fa03a590518a5e6a31eebb5defb4
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
module Mayl module Colors def color(name, str) code = case name when :black then "\033[30m" when :red then "\033[31m" when :green then "\033[32m" when :brown then "\033[33m" when :blue then "\033[34m" when :magenta then "\033[35m" when :cyan then "\033[36m" when :gray then "\033[37m" end endcode = "\033[0m" [code,str,endcode].join end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mayl-0.2.1 | lib/mayl/colors.rb |