Class: CTodo::ColorSet

Inherits:
Object
  • Object
show all
Defined in:
lib/ctodo/color.rb

Direct Known Subclasses

BgColorSet, FgColorSet, NoneColorSet

Instance Method Summary collapse

Instance Method Details

#demoObject



9
10
11
12
13
# File 'lib/ctodo/color.rb', line 9

def demo
	[:white, :cyan, :magenta, :blue, :yellow, :green, :red, :black].each do |color|
		puts [self.send(color), color.to_s[0,1].upcase*3, rst].join
	end
end

#rstObject



7
# File 'lib/ctodo/color.rb', line 7

def rst; "\e[0m" end