Class: Vedeu::Geometry::VerticalAlignment

Inherits:
Alignment
  • Object
show all
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

#alignSymbol

Returns:

  • (Symbol)

Raises:



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