Sha256: 3310308ff12cf4bdae3ef51969faeeec61c7d3ebb4c6562b13c00a9550e814e1

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Cells

    # Provides the character/escape sequence to draw the top left
    # border with a custom value, colour and style.
    #
    # @api private
    #
    class TopLeft < Vedeu::Cells::Corner

      # @return [Symbol]
      def type
        :top_left
      end

      private

      # @return [Hash<Symbol => String>]
      def defaults
        super.merge!(position: Vedeu::Geometries::Position.coerce([y, x]),
                     value:    Vedeu::EscapeSequences::Borders.top_left)
      end

    end # TopLeft

  end # Cells

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

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