lib/clin/text/table.rb
# Convert the cell to_s using the length of the column and the column alignment
# @return [String]
Convert the cell to_s using the length of the column and the column alignment
Convert the cell to_s using the length of the column and the column alignment
def to_s
      case align
      when :left
        @value.to_s.ljust(length)
      when :right
        @value.to_s.rjust(length)
      when :center
        @value.to_s.center(length)
      else
        fail Clin::Error, "Invalid align #{align}"
      end
    end
def to_s case align when :left @value . to_s . ljust ( length ) when :right @value . to_s . rjust ( length ) when :center @value . to_s . center ( length ) else fail Clin :: Error , "Invalid align #{align}" end end
Convert the cell to_s using the length of the column and the column alignment
Convert the cell to_s using the length of the column and the column alignment
None
String