Sha256: d22b3a4b9453a53e3555078ad80295c798ec93d28607a7eb0a26c682e7d0e718

Contents?: true

Size: 720 Bytes

Versions: 5

Compression:

Stored size: 720 Bytes

Contents

# encoding: utf-8

module TTY
  class Table
    class Border
      # A class that represents no border.
      class Null < Border

        def_border do
          center SPACE_CHAR
        end

        # A stub top line
        #
        # @api private
        def top_line
          border_options ? super : nil
        end

        # A stub separator line
        #
        # @api private
        def separator
          return [] if border_options.separator == EACH_ROW
          border_options ? super : nil
        end

        # A stub bottom line
        #
        # @api private
        def bottom_line
          border_options ? super : nil
        end
      end # Null
    end # Border
  end # Table
end # TTY

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tty-table-0.6.0 lib/tty/table/border/null.rb
tty-table-0.5.0 lib/tty/table/border/null.rb
tty-table-0.4.0 lib/tty/table/border/null.rb
tty-table-0.3.0 lib/tty/table/border/null.rb
tty-table-0.2.0 lib/tty/table/border/null.rb