module Vedeu module Geometry # Provides the mechanism to align an interface/view vertically # within the available terminal space. # class VerticalAlignment < Vedeu::Geometry::Alignment # @raise [Vedeu::Error::InvalidSyntax] When the value is not one # of :bottom, :centre, :left, :middle, :right, :top. # @return [Symbol] def align return value if valid? fail Vedeu::Error::InvalidSyntax, 'No vertical alignment value given. Valid values are :bottom, ' \ ':middle, :none, :top.'.freeze end end # VerticalAlignment end # Geometry end # Vedeu