module PrettyBacon
Constants
- VERSION
Public Class Methods
color(color, string)
click to toggle source
# File lib/pretty_bacon.rb, line 10 def self.color(color, string) case color when :red "\e[31m#{string}\e[0m" when :green "\e[32m#{string}\e[0m" when :yellow "\e[33m#{string}\e[0m" when :none string else "\e[0m#{string}\e[0m" end end