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