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