Sha256: 49a57cf5e1b1e264f9a25407e73bc90f2abb9019f695c8b1385a0743290c347a

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Cells

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

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

      # @return [Symbol]
      def type
        :bottom_left
      end

      private

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

    end # BottomLeft

  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_left.rb
vedeu-0.8.7 lib/vedeu/cells/borders/vertices/bottom_left.rb
vedeu-0.8.6 lib/vedeu/cells/borders/vertices/bottom_left.rb
vedeu-0.8.5 lib/vedeu/cells/borders/vertices/bottom_left.rb
vedeu-0.8.4 lib/vedeu/cells/borders/vertices/bottom_left.rb
vedeu-0.8.3 lib/vedeu/cells/borders/vertices/bottom_left.rb