Sha256: 361a7dad9b4a57cd9909fd300c123e28a0e875e3aede0a52952ab4c7efdf4eee

Contents?: true

Size: 577 Bytes

Versions: 4

Compression:

Stored size: 577 Bytes

Contents

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 text
        '-'
      end

      # @return [Symbol]
      def type
        :horizontal
      end

      private

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

    end # Horizontal

  end # Cells

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.8.0 lib/vedeu/cells/borders/horizontal.rb
vedeu-0.7.4 lib/vedeu/cells/borders/horizontal.rb
vedeu-0.7.3 lib/vedeu/cells/borders/horizontal.rb
vedeu-0.7.2 lib/vedeu/cells/borders/horizontal.rb