Class: Vedeu::Geometry::HorizontalAlignment Private

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

Constructor Details

This class inherits a constructor from Vedeu::Geometry::Alignment

Instance Method Details

#alignSymbol

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.

Returns:

  • (Symbol)

Raises:



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