lib/pagespeed/parser.rb
# colorize the good the bad and the ugly
colorize the good the bad and the ugly
colorize the good the bad and the ugly
def colorize(score)
        case score.to_i
        when 90..100
          print "\033[32m"
        when 70..89
          print "\033[33m"
        else
          print "\033[31m"
        end
      end
def colorize ( score ) case score . to_i when 90 .. 100 print "\033[32m" when 70 .. 89 print "\033[33m" else print "\033[31m" end end
colorize the good the bad and the ugly
colorize the good the bad and the ugly
score
<not_specific>