module Tablo::Util

Defined in:

util.cr

Class Method Summary

Class Method Detail

def self.dot_align(value, dec, mode : DotAlign = DotAlign::DotZero) #

[View source]
def self.stretch(s : String, width : Int32, insert_char : Char, gap : Int32 = 0, left_margin : String = "", right_margin : String = "") #

-------------- stretch --------------------------------------------------------


[View source]
def self.update(dst : NamedTuple, from src : NamedTuple) #

Update namedtuple (dst) fields from another namedtuple (src) fields Fields existing in src and missing in dst are ignored Returns the updated dst as a new NamedTuple


[View source]