Sha256: dd320227c128a008852c9c68c393f34d5998d939785a2fc0225dac7c4a0dc32c

Contents?: true

Size: 674 Bytes

Versions: 6

Compression:

Stored size: 674 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Cells

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

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

      # @return [Symbol]
      def type
        :bottom_right
      end

      private

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

    end # BottomRight

  end # Cells

end # Vedeu

Version data entries

6 entries across 6 versions & 1 rubygems

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