class Utils::ProcessJob
def ok_colorize(string)
-
(String)
- the colorized string or the original string if status is unknown
Parameters:
-
string
(String
) -- the string to be colorized
def ok_colorize(string) case @ok when false then white { on_red { string } } when true then black { on_green { string } } else string end end