Class: CTodo::ColorSet
- Inherits:
-
Object
- Object
- CTodo::ColorSet
- Defined in:
- lib/ctodo/color.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#demo ⇒ Object
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 |
#rst ⇒ Object
7 |
# File 'lib/ctodo/color.rb', line 7 def rst; "\e[0m" end |