Sha256: 3067c726e7d7c9f73424267a4f5cf28920d22f4eb789c58984225952e26bc77b

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

module Vedeu

  module Geometry

    # The X Dimension provides the width of an entity.
    #
    class XDimension < Vedeu::Geometry::Dimension

      private

      # @return [Symbol]
      def alignment
        horizontal_alignment
      end

      # @return [Hash<Symbol => NilClass,Boolean,Symbol>]
      def defaults
        super.merge!(
          default:              Vedeu.width,
          horizontal_alignment: default_alignment,
        )
      end

      # @return [Symbol]
      def default_alignment
        Vedeu::Geometry::HorizontalAlignment.align(:none)
      end

    end # XDimension

  end # Geometry

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.6.36 lib/vedeu/geometry/x_dimension.rb