Sha256: 681f0f6a55f3a15f575c6f5266340701908bbe0aecf229759e5dcc60de26da25

Contents?: true

Size: 649 Bytes

Versions: 7

Compression:

Stored size: 649 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 as_html
        '&#x2502;'
      end

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

      # @return [Symbol]
      def type
        :vertical
      end

      private

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

    end # Vertical

  end # Cells

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.8.9 lib/vedeu/cells/borders/vertical.rb
vedeu-0.8.8 lib/vedeu/cells/borders/vertical.rb
vedeu-0.8.7 lib/vedeu/cells/borders/vertical.rb
vedeu-0.8.6 lib/vedeu/cells/borders/vertical.rb
vedeu-0.8.5 lib/vedeu/cells/borders/vertical.rb
vedeu-0.8.4 lib/vedeu/cells/borders/vertical.rb
vedeu-0.8.3 lib/vedeu/cells/borders/vertical.rb