Sha256: b84ac0444cada38a5ccfdf716026a9fdc5f5bb7535154444475eaf2030c220cb

Contents?: true

Size: 652 Bytes

Versions: 6

Compression:

Stored size: 652 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 [String]
      def as_html
        '&#x250C;'
      end

      # @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.esc.top_left)
      end

    end # TopLeft

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