travis-ci
525 of 770 relevant lines covered (68.18%)
3.35 hits per line
1 |
require 'rainbow'
|
4✔ |
2 |
|
|
3 |
module Rainbow |
4✔ |
4 |
module Ext |
4✔ |
5 |
module String |
4✔ |
6 |
module InstanceMethods |
4✔ |
7 |
def foreground(*color) |
4✔ |
8 |
Rainbow(self).foreground(*color)
|
× |
9 |
end
|
|
10 |
|
|
11 |
alias color foreground |
4✔ |
12 |
alias colour foreground |
4✔ |
13 |
|
|
14 |
def background(*color) |
4✔ |
15 |
Rainbow(self).background(*color)
|
× |
16 |
end
|
|
17 |
|
|
18 |
def reset |
4✔ |
19 |
Rainbow(self).reset
|
× |
20 |
end
|
|
21 |
|
|
22 |
def bright |
4✔ |
23 |
Rainbow(self).bright
|
× |
24 |
end
|
|
25 |
|
|
26 |
def faint |
4✔ |
27 |
Rainbow(self).faint
|
× |
28 |
end
|
|
29 |
|
|
30 |
def italic |
4✔ |
31 |
Rainbow(self).italic
|
× |
32 |
end
|
|
33 |
|
|
34 |
def underline |
4✔ |
35 |
Rainbow(self).underline
|
× |
36 |
end
|
|
37 |
|
|
38 |
def blink |
4✔ |
39 |
Rainbow(self).blink
|
× |
40 |
end
|
|
41 |
|
|
42 |
def inverse |
4✔ |
43 |
Rainbow(self).inverse
|
× |
44 |
end
|
|
45 |
|
|
46 |
def hide |
4✔ |
47 |
Rainbow(self).hide
|
× |
48 |
end
|
|
49 |
end
|
|
50 |
end
|
|
51 |
end
|
|
52 |
end
|
|
53 |
|
|
54 |
::String.send(:include, Rainbow::Ext::String::InstanceMethods) |
4✔ |