File Manager

Path: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/tty-table-0.11.0/lib/tty/table/border/

Viewing File: row_line.rb

# 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