def content (data)
      string = ''
      data.each_index do |i|
        row = data[i]
        row.each_index do |j|
          column = row[j]
          column ||= {:value => nil, :color => nil}
          width = max_width data, j
          alignment = (@align[j] or @default_align)
          value = Aligner.align alignment, column[:value].to_s, width
          value = Yummi.colorize value, column[:color] unless @no_colors
          string << value
          string << (' ' * @colspan)
        end
        string.strip! << $/
      end
      string
    end
def content (data)
      string = ''
      data.each_index do |i|
        row = data[i]
        row.each_index do |j|
          column = row[j]
          column ||= {:value => nil, :color => nil}
          width = max_width data, j
          alignment = (@align[j] or @default_align)
          value = Aligner.align alignment, column[:value].to_s, width
          value = Yummi.colorize value, column[:color] unless @no_colors
          string << value
          string << (' ' * @colspan)
        end
        string.strip! << $/
      end
      string
    end
def content ( data ) string = '' data . each_index do | i | row = data [ i ] row . each_index do | j | column = row [ j ] column ||= { :value => nil , :color => nil } width = max_width data , j alignment = ( @align [ j ] or @default_align ) value = Aligner . align alignment , column [ :value ] . to_s , width value = Yummi . colorize value , column [ :color ] unless @no_colors string << value string << ( ' ' * @colspan ) end string . strip! << $/ end string end
Gets the content string for the given color map and content
Gets the content string for the given color map and content