Sha256: 95beba89dcd9a515842f00a2bcc93c596eb0466c0bb010d648a8d7bf6a754c3d

Contents?: true

Size: 534 Bytes

Versions: 11

Compression:

Stored size: 534 Bytes

Contents

module Vedeu

  module Geometry

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

      private

      # @return [Vedeu::Geometry::HorizontalAlignment]
      def alignment
        Vedeu::Geometry::Alignment.coerce(@alignment)
      end

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

    end # XDimension

  end # Geometry

end # Vedeu

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vedeu-0.6.47 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.46 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.45 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.44 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.43 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.42 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.41 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.40 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.39 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.38 lib/vedeu/geometry/x_dimension.rb
vedeu-0.6.37 lib/vedeu/geometry/x_dimension.rb