Sha256: abc71572197875b2493a35dd385c4cdeace5602496ed17bbac26246f06127f90

Contents?: true

Size: 659 Bytes

Versions: 7

Compression:

Stored size: 659 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Cells

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

      # @return [String]
      def as_html
        '&#x2500;'
      end

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

      # @return [Symbol]
      def type
        :horizontal
      end

      private

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

    end # Horizontal

  end # Cells

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

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