module PutsUtils::PutsColor

Constants

COLOR_CODES

Public Instance Methods

puts_color(string, color = :gray) click to toggle source
# File lib/puts_utils/puts_color.rb, line 15
def puts_color(string, color = :gray)
  puts "\e[#{COLOR_CODES[color]}m#{string}\e[0m"
end