Method: ReVIEW::TOPBuilder#list
- Defined in:
- lib/review/topbuilder.rb
#list(lines, id, caption, lang = nil) ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/review/topbuilder.rb', line 94 def list(lines, id, caption, lang = nil) blank puts "◆→開始:#{@titles['list']}←◆" begin if caption_top?('list') list_header(id, caption, lang) blank end list_body(id, lines, lang) unless caption_top?('list') blank list_header(id, caption, lang) end rescue KeyError app_error "no such list: #{id}" end puts "◆→終了:#{@titles['list']}←◆" blank end |