Guest User

Untitled

a guest
Jun 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. doc = APIDocumenter.new('./doc/api_doc_markdown.txt', './doc/api_doc.html')
  2. puts doc.table [['foo', 'bar']], ['h1', 'h2']
  3. # result
  4. begin
  5.  
  6. <table>
  7. <thead>
  8. <tr>
  9. <th>h1</th>
  10. <th>h2</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. <tr>
  15. <td>foo</td>
  16. <td>bar</td>
  17. </tr>
  18. </tbody>
  19. </table>
  20.  
  21. end
Add Comment
Please, Sign In to add comment