Sha256: c0ee8a3a6bb8d436e776370c65f4824e25c266c8c830480d0fade0ecc505a887

Contents?: true

Size: 566 Bytes

Versions: 10

Compression:

Stored size: 566 Bytes

Contents

module WhirledPeas
  module Settings
    module VertAlignment
      TOP = :top
      MIDDLE = :middle
      BOTTOM = :bottom
      BETWEEN = :between
      AROUND = :around
      EVENLY = :evenly

      DEFAULT = TOP

      VALID = [TOP, MIDDLE, BOTTOM, BETWEEN, AROUND, EVENLY]
      private_constant :VALID

      def self.validate!(valign)
        return if valign.nil?
        return valign if VALID.include?(valign)
        raise ArgumentError, "Unsupported vertical alignment: #{valign.inspect}"
      end
    end
    private_constant :VertAlignment
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.12.0 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.11.1 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.11.0 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.10.0 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.9.1 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.9.0 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.8.0 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.7.1 lib/whirled_peas/settings/vert_alignment.rb
whirled_peas-0.7.0 lib/whirled_peas/settings/vert_alignment.rb