Sha256: ce4305d56238682d0d0e902d26e8cdcabfcc85f6bd4e2f35a6271c3fc75e7f52

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require 'term/ansicolor'
require_relative './settings.rb'

class Color
  @@on=Settings.new["colorize"]

  def self.bold
    Term::ANSIColor.bold if @@on
	"" if !@@on
  end
  def self.cyan
    Term::ANSIColor.cyan if @@on
	"" if !@@on
  end
  def self.clear
    Term::ANSIColor.clear if @@on
	"" if !@@on
  end
  def self.green
    Term::ANSIColor.green if @@on
	"" if !@@on
  end

  def self.white
    Term::ANSIColor.white if @@on
	"" if !@@on
  end
  #extend Term::ANSIColor
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev_tasks-0.0.39 lib/color.rb