Sha256: 9890a8351fafe93cd58f084030788393b75ea2827611731bde547ec6479a7fcb

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Cells

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

      # @return [Symbol]
      def type
        :top_right
      end

      private

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

    end # TopRight

  end # Cells

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.2 lib/vedeu/cells/borders/top_right.rb