Class: Vedeu::Geometry::HorizontalAlignment Private
- Defined in:
- lib/vedeu/geometry/horizontal_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 align an interface/view horizontally within the available terminal space.
Instance Method Summary collapse
- #align ⇒ Symbol private
Constructor Details
This class inherits a constructor from Vedeu::Geometry::Alignment
Instance Method Details
#align ⇒ Symbol
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/geometry/horizontal_alignment.rb', line 15 def align return value if valid? fail Vedeu::Error::InvalidSyntax, 'No horizontal alignment value given. Valid values are :center, ' \ ':centre, :left, :none, :right.'.freeze end |