# File tutorial/build_docs.rb, line 20 def output() yield "<table border='#{@border}' \n" + " cellpadding='#{@cellpad}' \n" + " width='#{@width}'>\n" + " <tr>\n" + " <td width='#{@td_width}' \n" + " bgcolor='#{@title_bgcolor}' \n" + " class='fig-title'> \n" + " <a name='fig_#{figure}'>\n" + " <b>Figure #{@figure}: #{title}</b>\n" + " </a>\n" + " </td>\n" + " </tr>\n" + " <tr>\n" + " <td width='#{@td_width}' \n" + " bgcolor='#{@text_bgcolor}' \n" + " class='fig-text'> \n" + " <pre>\n\n" File.open(@example_file) { |file| i = 0 file.each { |line| i += 1 yield sprintf('<a name=\'fig_%s-line_%s\'>% 3s</a>. %s', @figure, i, i, line) } } yield " </pre>\n" + " </td>\n" + " </tr>\n" + " <tr>\n" + " <td width='#{@td_width}' \n" + " bgcolor='#{@footer_bgcolor}' \n" + " class='fig-footer'> \n" + " [ <a href='#{@example_file}' \n" + " class='fig-footer-link'>Download</a> ] \n" + " [ <a href='#{@example_output}' \n" + " class='fig-footer-link'>Output</a> ] \n" + " </td>\n" + " </tr>\n" + "</table>\n" end