col 1.0.0 → 1.0.1a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +35 -35
  2. data/lib/col.rb +350 -342
  3. data/test/col.rb +241 -229
  4. data/test/col_db.rb +14 -14
  5. metadata +33 -57
data/README CHANGED
@@ -1,35 +1,35 @@
1
- col: high-level console color formatting for Ruby
2
-
3
- If you want a dash of color in your Ruby console program, use Term::ANSIColor.
4
- If your color formatting requirements are more complicated, use Col.
5
- Col provides as much convenience as possible without modifying builtin classes.
6
-
7
- Synopsis
8
-
9
- require 'col'
10
-
11
- puts Col("Hello world!").red.bold
12
- puts Col("Hello world!").rb
13
- puts Col("Hello world!").fmt [:red, :bold]
14
- puts Col("Hello world!").fmt :rb
15
-
16
- puts Col("Hello ", "world!").fmt :red, :green
17
- puts Col("Hello ", "world!").fmt "r,g"
18
-
19
- puts Col("Hello ", "world!").fmt [:red, :bold], [:green, :bold]
20
- puts Col("Hello ", "world!").fmt "rb,gb"
21
-
22
- puts Col("Hello ", "world!").fmt [:bold], [:cyan, :italic, :on_white]
23
- puts Col("Hello ", "world!").fmt "_b,ciow"
24
-
25
- puts Col("Hello ", "world!").fmt [:blue, :on_yellow], [:on_green]
26
- puts Col("Hello ", "world!").fmt "b_oy,__og"
27
-
28
- puts Col.inline( "Hello ", :red, "world!", :blue )
29
-
30
- puts Col.inline(
31
- "Hello ", [:red, :bold, :on_white],
32
- "world!", :b_oy
33
- )
34
-
35
- See http://gsinclair.github.com/col.html for full details.
1
+ col: high-level console color formatting for Ruby
2
+
3
+ If you want a dash of color in your Ruby console program, use Term::ANSIColor.
4
+ If your color formatting requirements are more complicated, use Col.
5
+ Col provides as much convenience as possible without modifying builtin classes.
6
+
7
+ Synopsis
8
+
9
+ require 'col'
10
+
11
+ puts Col("Hello world!").red.bold
12
+ puts Col("Hello world!").rb
13
+ puts Col("Hello world!").fmt [:red, :bold]
14
+ puts Col("Hello world!").fmt :rb
15
+
16
+ puts Col("Hello ", "world!").fmt :red, :green
17
+ puts Col("Hello ", "world!").fmt "r,g"
18
+
19
+ puts Col("Hello ", "world!").fmt [:red, :bold], [:green, :bold]
20
+ puts Col("Hello ", "world!").fmt "rb,gb"
21
+
22
+ puts Col("Hello ", "world!").fmt [:bold], [:cyan, :italic, :on_white]
23
+ puts Col("Hello ", "world!").fmt "_b,ciow"
24
+
25
+ puts Col("Hello ", "world!").fmt [:blue, :on_yellow], [:on_green]
26
+ puts Col("Hello ", "world!").fmt "b_oy,__og"
27
+
28
+ puts Col.inline( "Hello ", :red, "world!", :blue )
29
+
30
+ puts Col.inline(
31
+ "Hello ", [:red, :bold, :on_white],
32
+ "world!", :b_oy
33
+ )
34
+
35
+ See http://gsinclair.github.com/col.html for full details.