Sha256: 64d30c4a25b11ff8216b65f188d457d409e26bfc2974f7ebfabf1d45605c15e0

Contents?: true

Size: 534 Bytes

Versions: 11

Compression:

Stored size: 534 Bytes

Contents

module Vedeu

  module Geometry

    # The Y Dimension provides the height of an entity.
    #
    class YDimension < Vedeu::Geometry::Dimension

      private

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

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

    end # YDimension

  end # Geometry

end # Vedeu

Version data entries

11 entries across 11 versions & 1 rubygems

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