EOS end def print_footer(total_count, failed_count, pending_count, total_time) update_report_js_tmp = '' update_report_js = '' %w{ total_count failed_count pending_count total_time }.each do |key| update_report_js += update_report_js_tmp % [key, eval(key)] end <<-EOS