Sha256: cf7e0f845b8cf3a20c9cc3ba9a157b5406e498320fd0141e318d281f1c7c07dd
Contents?: true
Size: 727 Bytes
Versions: 20
Compression:
Stored size: 727 Bytes
Contents
# frozen_string_literal: true module Vedeu module Coercers # Provides the mechanism to validate a vertical alignment value. # # @api private # class VerticalAlignment < Vedeu::Coercers::Alignment # @macro raise_invalid_syntax # @return (see Vedeu::Coercers::Alignment#validate) def validate return coerce if valid_vertical? raise Vedeu::Error::InvalidSyntax, 'Missing or invalid vertical alignment value. ' \ "Valid values are: #{to_sentence}" end private # @return [String] def to_sentence Vedeu::Sentence.construct(vertical_values) end end # VerticalAlignment end # Coercers end # Vedeu
Version data entries
20 entries across 20 versions & 1 rubygems