Skip to content

Instantly share code, notes, and snippets.

@mrinterweb
Created November 9, 2010 22:02
Show Gist options
  • Save mrinterweb/669906 to your computer and use it in GitHub Desktop.
Save mrinterweb/669906 to your computer and use it in GitHub Desktop.
doc = APIDocumenter.new('./doc/api_doc_markdown.txt', './doc/api_doc.html')
puts doc.table [['foo', 'bar']], ['h1', 'h2']
# result
begin
<table>
<thead>
<tr>
<th>h1</th>
<th>h2</th>
</tr>
</thead>
<tbody>
<tr>
<td>foo</td>
<td>bar</td>
</tr>
</tbody>
</table>
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment