Sha256: 42a8f423af983001faf4f3bbd098bf3a6914ca258b0aba6b745f76bcfd35f17f
Contents?: true
Size: 391 Bytes
Versions: 4
Compression:
Stored size: 391 Bytes
Contents
module Massa class CLI def self.colorize(color, string) color_code = case color when :red then 31 when :green then 32 when :yellow then 33 when :blue then 34 when :pink then 35 when :light_blue then 36 else 0 end puts "\n\e[#{color_code}m#{string}\e[0m\n" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
massa-0.0.5 | lib/massa/cli.rb |
massa-0.0.4 | lib/massa/cli.rb |
massa-0.0.3 | lib/massa/cli.rb |
massa-0.0.2 | lib/massa/cli.rb |