Module: GreenHat::Color

Defined in:
lib/greenhat/color.rb

Overview

Looping in GreenHat to allow disabling of Color

Class Method Summary collapse

Class Method Details

.decorate(args) ⇒ Object



12
13
14
# File 'lib/greenhat/color.rb', line 12

def self.decorate(args)
  Settings.color? ? pastel.decorate(*args) : args.first
end

.pastelObject



8
9
10
# File 'lib/greenhat/color.rb', line 8

def self.pastel
  @pastel ||= Pastel.new
end