Class: Vedeu::Geometry::VerticalAlignment
- Defined in:
- lib/vedeu/geometry/vertical_alignment.rb
Overview
Provides the mechanism to align an interface/view vertically 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/vertical_alignment.rb', line 13 def align return value if valid? fail Vedeu::Error::InvalidSyntax, 'No vertical alignment value given. Valid values are :bottom, ' \ ':middle, :none, :top.'.freeze end |