Sha256: 4e1ade60a0174df27ef3c7860c0f29cb9b54b0e9f4454dfc2b56ac4149fa0d9b

Contents?: true

Size: 659 Bytes

Versions: 22

Compression:

Stored size: 659 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

      # @macro defaults_method
      def defaults
        super.merge!(position: Vedeu::Geometries::Position.new(yn, xn),
                     value:    Vedeu.esc.bottom_right)
      end

    end # BottomRight

  end # Cells

end # Vedeu

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
vedeu-0.8.32 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.31 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.30 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.29 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.28 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.27 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.26 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.25 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.24 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.23 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.22 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.21 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.20 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.19 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.18 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.17 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.16 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.15 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.14 lib/vedeu/cells/borders/vertices/bottom_right.rb
vedeu-0.8.13 lib/vedeu/cells/borders/vertices/bottom_right.rb