Sha256: 4d76477995935b2064e66cdb045b3447da17129413c09e979b5310a955980aa3

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Cells

    # Provides the character/escape sequence to draw one cell of a
    # vertical border with a custom value, colour and style.
    #
    # @api private
    #
    class Vertical < Vedeu::Cells::Border

      # @return [String]
      def text
        '|'
      end

      # @return [Symbol]
      def type
        :vertical
      end

      private

      # @return [Hash<Symbol => String>]
      def defaults
        super.merge!(value: Vedeu::EscapeSequences::Borders.vertical)
      end

    end # Vertical

  end # Cells

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.1 lib/vedeu/cells/borders/vertical.rb