class TablePrint::FixedWidthFormatter
def truncate(value)
def truncate(value) return "" unless value value = value.to_s return value unless value.length > width "#{value[0..width-4]}..." end
def truncate(value) return "" unless value value = value.to_s return value unless value.length > width "#{value[0..width-4]}..." end