Sha256: 08b461ff2f424a453ac10978f2c67e53f5e9efb0003269cf3f2d897084671381
Contents?: true
Size: 672 Bytes
Versions: 9
Compression:
Stored size: 672 Bytes
Contents
module Vedeu module Geometry # Provides the mechanism to align an interface/view vertically # within the available terminal space. # # @api private # 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
Version data entries
9 entries across 9 versions & 1 rubygems