Method: ReVIEW::HTMLBuilder#list
- Defined in:
- lib/review/htmlbuilder.rb
#list(lines, id, caption) ⇒ Object
465 466 467 468 469 470 471 472 473 474 |
# File 'lib/review/htmlbuilder.rb', line 465 def list(lines, id, caption) puts %Q[<div class="caption-code">] begin list_header id, caption rescue KeyError error "no such list: #{id}" end list_body id, lines puts '</div>' end |