Skip to content

Instantly share code, notes, and snippets.

@mxlje
Created November 9, 2015 11:24
Show Gist options
  • Save mxlje/9a61914822f8c2961d6f to your computer and use it in GitHub Desktop.
Save mxlje/9a61914822f8c2961d6f to your computer and use it in GitHub Desktop.
class C
class << self
def green(s)
"\e[36m#{s}\e[0m"
end
def orange(s)
"\e[33m#{s}\e[0m"
end
def red(s)
"\e[31m#{s}\e[0m"
end
def gray(s)
"\e[90m#{s}\e[0m"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment