Module | Colored |
In: |
lib/colored.rb
|
cute.
>> "this is red".red >> "this is red with a blue background (read: ugly)".red_on_blue >> "this is red with an underline".red.underline >> "this is really bold and really blue".bold.blue >> Colored.red "This is red" # but this part is mostly untested
COLORS | = | { 'black' => 30, 'red' => 31, 'green' => 32, 'yellow' => 33, 'blue' => 34, 'magenta' => 35, 'cyan' => 36, 'white' => 37 |
EXTRAS | = | { 'clear' => 0, 'bold' => 1, 'underline' => 4, 'reversed' => 7 |