Class: Vedeu::Coercers::VerticalAlignment Private
- Defined in:
- lib/vedeu/coercers/vertical_alignment.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Provides the mechanism to validate a vertical alignment value.
Instance Method Summary collapse
- #to_sentence ⇒ String private private
- #validate ⇒ Boolean private
Constructor Details
This class inherits a constructor from Vedeu::Coercers::Alignment
Instance Method Details
#to_sentence ⇒ String (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/vedeu/coercers/vertical_alignment.rb', line 26 def to_sentence Vedeu::Sentence.construct(vertical_values) end |
#validate ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 18 19 20 21 |
# File 'lib/vedeu/coercers/vertical_alignment.rb', line 15 def validate return coerce if valid_vertical? fail Vedeu::Error::InvalidSyntax, 'Missing or invalid vertical alignment value. ' \ "Valid values are: #{to_sentence}" end |