Sha256: 5bf88bc95bba74ed27bf212c10966a82dabc78302dc36bf76a60d8bcba3c8f39
Contents?: true
Size: 281 Bytes
Versions: 2
Compression:
Stored size: 281 Bytes
Contents
module Massa class CLI class << self def colorize(color, string) puts "\n\e[#{code(color)}m#{string}\e[0m\n" end def code(color) { red: 31, green: 32, yellow: 33, blue: 34, pink: 35, light_blue: 36 }[color] || 0 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
massa-0.0.7 | lib/massa/cli.rb |
massa-0.0.6 | lib/massa/cli.rb |