class Until
Public Class Methods
error(info)
click to toggle source
# File lib/until.rb, line 7 def self.error(info) STDOUT.puts "error:" + red(info) end
log(info)
click to toggle source
# File lib/until.rb, line 3 def self.log(info) STDOUT.puts "log:" + green(info) end
Protected Class Methods
colorize(color_code,str)
click to toggle source
# File lib/until.rb, line 12 def self.colorize(color_code,str) "\e[#{color_code}m#{str}\e[0m" end
green(str)
click to toggle source
# File lib/until.rb, line 20 def self.green(str) colorize(32,str) end
pink(str)
click to toggle source
# File lib/until.rb, line 28 def self.pink(str) colorize(35) end
red(str)
click to toggle source
# File lib/until.rb, line 16 def self.red(str) colorize(31,str) end
yellow(str)
click to toggle source
# File lib/until.rb, line 24 def self.yellow(str) colorize(33,str) end