push
travis-ci
935 of 990 relevant lines covered (94.44%)
442.35 hits per line
1 |
# encoding: utf-8
|
|
2 |
|
|
3 |
module TTY |
6 all except jruby-9.1.1.0 and jruby-head ✔ |
4 |
class Table |
6 all except jruby-9.1.1.0 and jruby-head ✔ |
5 |
class Border |
6 all except jruby-9.1.1.0 and jruby-head ✔ |
6 |
# A class for a table row line chars manipulation
|
|
7 |
class RowLine < Struct.new(:left, :center, :right) |
6 all except jruby-9.1.1.0 and jruby-head ✔ |
8 |
# Colorize characters with a given style
|
|
9 |
#
|
|
10 |
# @api public
|
|
11 |
def colorize(border, style) |
6 all except jruby-9.1.1.0 and jruby-head ✔ |
12 |
colorized_chars = border.set_color(style, right, center, left) |
× |
13 |
self.right, self.center, self.left = colorized_chars |
× |
14 |
end
|
|
15 |
end # RowLine |
|
16 |
end # Border |
|
17 |
end # Table |
|
18 |
end # TTY |