travis-ci
103 of 103 new or added lines in 10 files covered. (100.0%)
362 of 638 relevant lines covered (56.74%)
1.13 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
require 'pastel'
|
2✔ |
4 |
|
|
5 |
module Gundam |
2✔ |
|
module ColorizeHelper |
2✔ |
|
def cyan(text) |
2✔ |
8 |
pastel.cyan(text) |
× |
9 |
end
|
|
10 |
|
|
|
def blue(text) |
2✔ |
|
pastel.blue(text) |
× |
13 |
end
|
|
14 |
|
|
15 |
def green(text) |
2✔ |
|
pastel.green(text) |
× |
17 |
end
|
|
18 |
|
|
19 |
def red(text) |
2✔ |
20 |
pastel.red(text) |
× |
21 |
end
|
|
22 |
|
|
23 |
private |
2✔ |
24 |
|
|
25 |
def pastel |
2✔ |
26 |
@pastel ||= Pastel.new |
× |
27 |
end
|
|
28 |
end
|
|
29 |
end
|