enum

Tablo::Functions::FPAlign

Inherits Enum < Comparable < Value < Object

Used by Tablo::Functions.fp_align class method for floats formatting, where all trailing decimal zeroes are replaced by spaces.

Special formatting is further applied depending on enum values:

  • Blank: Whole field is blank if value == 0
  • NoDot: Decimal part of field (including dot) is blank if all decimals are zeroes
  • DotOnly: Decimal part of field is blank if all decimals are zeroes
  • DotZero: Decimal part of field is blank if all decimals are zeroes, except first (.0)

Constants

Blank = 0
NoDot = 1
DotOnly = 2
DotZero = 3

Instance methods

blank?

Returns true if this enum value equals Blank

Source
dot_only?

Returns true if this enum value equals DotOnly

Source
dot_zero?

Returns true if this enum value equals DotZero

Source
no_dot?

Returns true if this enum value equals NoDot

Source