Module: HTML

Defined in:
lib/html/proofer.rb,
lib/html/proofer/checks.rb,
lib/html/proofer/checkable.rb

Defined Under Namespace

Classes: Proofer

Class Method Summary collapse

Class Method Details

.colorize(color, string) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/html/proofer.rb', line 16

def self.colorize(color, string)
  if $stdout.isatty && $stderr.isatty
    Colored.colorize(string, :foreground => color)
  else
    string
  end
end