Sha256: e77c51c264f93ff2daf7fed82048aa40e9a50796a448fd8c48dd5e416845dbd0

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

# -*- encoding: utf-8 -*-

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(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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tty-0.0.11 lib/tty/table/border/row_line.rb
tty-0.0.10 lib/tty/table/border/row_line.rb