Sha256: 66bbaf7c9cad5d43f17853c33712c04decaac3cd4345689ace438bbc25668ae5

Contents?: true

Size: 681 Bytes

Versions: 9

Compression:

Stored size: 681 Bytes

Contents

# encoding: utf-8

module TTY
  class Table
    class Border
      # A class that represents an ascii border.
      #
      # @api private
      class ASCII < Border

        def_border do
          top           '-'
          top_mid       '+'
          top_left      '+'
          top_right     '+'
          bottom        '-'
          bottom_mid    '+'
          bottom_left   '+'
          bottom_right  '+'
          mid           '-'
          mid_mid       '+'
          mid_left      '+'
          mid_right     '+'
          left          '|'
          center        '|'
          right         '|'
        end

      end # ASCII
    end # Border
  end # Table
end # TTY

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
tty-table-0.6.0 lib/tty/table/border/ascii.rb
tty-table-0.5.0 lib/tty/table/border/ascii.rb
tty-table-0.4.0 lib/tty/table/border/ascii.rb
tty-table-0.3.0 lib/tty/table/border/ascii.rb
tty-table-0.2.0 lib/tty/table/border/ascii.rb
tty-table-0.1.0 lib/tty/table/border/ascii.rb
tty-0.1.2 lib/tty/table/border/ascii.rb
tty-0.1.1 lib/tty/table/border/ascii.rb
tty-0.1.0 lib/tty/table/border/ascii.rb