class ReVIEW::MD2INAOBuilder
Public Instance Methods
cmd(lines)
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 21 def cmd(lines) # WEB+DB では使っていないらしいけど puts "!!! cmd" lines.each do |line| puts detab(line) end puts "" end
compile_ruby(base, ruby)
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 46 def compile_ruby(base, ruby) if base.length == 1 %Q[<span class='monoruby'>#{escape_html(base)}(#{escape_html(ruby)})</span>] else %Q[<span class='groupruby'>#{escape_html(base)}(#{escape_html(ruby)})</span>] end end
dd(lines)
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 38 def dd(lines) puts "<dd>#{lines.join}</dd>" end
dl_begin()
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 30 def dl_begin puts '<dl>' end
dl_end()
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 42 def dl_end puts '</dl>' end
dt(line)
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 34 def dt(line) puts "<dt>#{line}</dt>" end
list_header(id, caption, lang)
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 15 def list_header(id, caption, lang) lang ||= "" puts "```#{lang}" print %Q[●リスト#{@chapter.list(id).number}::#{compile_inline(caption)}\n\n] end
paragraph(lines)
click to toggle source
# File ../../../../../lib/review/md2inaobuilder.rb, line 10 def paragraph(lines) puts " " + lines.join puts "\n" end