Sha256: c3449e5dff33758c8ae18dbe7359ca2665904ad5e834953ec5194ebdf6474105

Contents?: true

Size: 576 Bytes

Versions: 5

Compression:

Stored size: 576 Bytes

Contents

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::EscapeSequences::Borders.top_right)
      end

    end # TopRight

  end # Cells

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

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