support/ruby/collins-shell/lib/collins_shell/util/log_printer.rb
def add_logs_to_table need_separator, logs
      last_log_idx = logs.length - 1
      logs.each_with_index do |row, index|
        table << row
        # Don't print a separator if we don't have a multi-row message
        if index != last_log_idx && need_separator then
          table << :separator
        end
      end
    end
# Add the specified logs to the table instance, using a separator if required
Add the specified logs to the table instance, using a separator if required
Add the specified logs to the table instance using a separator if required
def add_logs_to_table need_separator, logs
      last_log_idx = logs.length - 1
      logs.each_with_index do |row, index|
        table << row
        if index != last_log_idx && need_separator then
          table << :separator
        end
      end
    end
def add_logs_to_table need_separator , logs last_log_idx = logs . length - 1 logs . each_with_index do | row , index | table << row if index != last_log_idx && need_separator then table << :separator end end end
Add the specified logs to the table instance, using a separator if required
Add the specified logs to the table instance using a separator if required
# Don't print a separator if we don't have a multi-row message
need_separator
logs