# frozen_string_literal: true
module TTY
class Table
class Border
# A class for a table row line chars manipulation
class RowLine < Struct.new(:left, :center, :right)
# Colorize characters with a given style
#
# @api public
def colorize(border, style)
colorized_chars = border.set_color(style, right, center, left)
self.right, self.center, self.left = colorized_chars
end
end # RowLine
end # Border
end # Table
end # TTY