diff options
Diffstat (limited to 'lib/tasks/utils.rb')
-rw-r--r-- | lib/tasks/utils.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/tasks/utils.rb b/lib/tasks/utils.rb deleted file mode 100644 index 3e49702..0000000 --- a/lib/tasks/utils.rb +++ /dev/null @@ -1,35 +0,0 @@ -# ===GLSAMaker v2 -# Copyright (C) 2009-2011 Alex Legler <a3li@gentoo.org> -# Copyright (C) 2009 Pierre-Yves Rofes <py@gentoo.org> -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# For more information, see the LICENSE file. -# - -class String - def purple - ansi 35 - end - - def red - ansi 31 - end - - def green - ansi 32 - end - - def bold - ansi 1 - end - - private - def ansi(code) - code = Integer(code) - "\033[1;#{code}m#{self}\033[0m" - end -end |