class SiSU_XML_Format::FormatToc
Public Class Methods
new(md,txt)
click to toggle source
Calls superclass method
SiSU_XML_Format::FormatTextObject::new
# File lib/sisu/xml_format.rb, line 772 def initialize(md,txt) super(md,txt) end
Public Instance Methods
lev(tag,attrib)
click to toggle source
# File lib/sisu/xml_format.rb, line 783 def lev(tag,attrib) if @txt %{<#{tag} class="#{attrib}"> #{@txt} </#{tag}> } else '' end end
lev0()
click to toggle source
# File lib/sisu/xml_format.rb, line 814 def lev0 #docinfo lev('h0','toc') end
lev1()
click to toggle source
# File lib/sisu/xml_format.rb, line 792 def lev1 lev('h1','toc') end
lev2()
click to toggle source
# File lib/sisu/xml_format.rb, line 795 def lev2 lev('h2','toc') end
lev3()
click to toggle source
# File lib/sisu/xml_format.rb, line 798 def lev3 lev('h3','toc') end
lev4()
click to toggle source
# File lib/sisu/xml_format.rb, line 801 def lev4 lev('h4','toc') end
lev5()
click to toggle source
# File lib/sisu/xml_format.rb, line 804 def lev5 lev('h5','toc') end
lev6()
click to toggle source
# File lib/sisu/xml_format.rb, line 807 def lev6 lev('h6','toc') end
lev7()
click to toggle source
# File lib/sisu/xml_format.rb, line 810 def lev7 lev('h7','toc') #lev('b','toc') end
links_guide()
click to toggle source
# File lib/sisu/xml_format.rb, line 775 def links_guide %{ <li class="doc"> <a href="#{@lnk_url}" target="_top"> #{@lnk_txt} </a> </li> } end
mini_concord_tail()
click to toggle source
# File lib/sisu/xml_format.rb, line 848 def mini_concord_tail %{ <h4 class="minitoc"> <a href="concordance.html">Concordance (wordlist)</a> </h4> <h4 class="minitoc"> <a href="sisu_manifest.html">Manifest (alternative outputs)</a> </h4> } end
mini_lev0()
click to toggle source
# File lib/sisu/xml_format.rb, line 838 def mini_lev0 #docinfo lev('h0','minitoc') end
mini_lev1()
click to toggle source
# File lib/sisu/xml_format.rb, line 817 def mini_lev1 lev('h1','minitoc') end
mini_lev2()
click to toggle source
# File lib/sisu/xml_format.rb, line 820 def mini_lev2 lev('h2','minitoc') end
mini_lev3()
click to toggle source
# File lib/sisu/xml_format.rb, line 823 def mini_lev3 lev('h3','minitoc') end
mini_lev4()
click to toggle source
# File lib/sisu/xml_format.rb, line 826 def mini_lev4 lev('h4','minitoc') end
mini_lev5()
click to toggle source
# File lib/sisu/xml_format.rb, line 829 def mini_lev5 lev('h5','minitoc') end
mini_lev6()
click to toggle source
# File lib/sisu/xml_format.rb, line 832 def mini_lev6 lev('h6','minitoc') end
mini_lev7()
click to toggle source
# File lib/sisu/xml_format.rb, line 835 def mini_lev7 lev('h7','minitoc') end
mini_tail()
click to toggle source
# File lib/sisu/xml_format.rb, line 841 def mini_tail %{ <h4 class="minitoc"> <a href="sisu_manifest.html">Manifest (alternative outputs)</a> </h4> } end