Sha256: 458da2291d4f0bf310431211ea08912412b82972fee51cee58919b375e42bf0f

Contents?: true

Size: 500 Bytes

Versions: 12

Compression:

Stored size: 500 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(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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
tty-table-0.10.0 lib/tty/table/border/row_line.rb
tty-table-0.9.0 lib/tty/table/border/row_line.rb
tty-table-0.8.0 lib/tty/table/border/row_line.rb
tty-table-0.7.0 lib/tty/table/border/row_line.rb
tty-table-0.6.0 lib/tty/table/border/row_line.rb
tty-table-0.5.0 lib/tty/table/border/row_line.rb
tty-table-0.4.0 lib/tty/table/border/row_line.rb
tty-table-0.3.0 lib/tty/table/border/row_line.rb
tty-table-0.2.0 lib/tty/table/border/row_line.rb
tty-table-0.1.0 lib/tty/table/border/row_line.rb
tty-0.1.2 lib/tty/table/border/row_line.rb
tty-0.1.1 lib/tty/table/border/row_line.rb