Class: Vedeu::Geometry::HorizontalAlignment
- Defined in:
- lib/vedeu/geometry/horizontal_alignment.rb
Overview
Provides the mechanism to align an interface/view horizontally within the available terminal space.
Instance Method Summary collapse
Constructor Details
This class inherits a constructor from Vedeu::Geometry::Alignment
Instance Method Details
#align ⇒ Symbol
13 14 15 16 17 18 19 |
# File 'lib/vedeu/geometry/horizontal_alignment.rb', line 13 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 |