class SiSU_XHTML_EPUB2_Format::FormatToc

Public Class Methods

new(md,txt) click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2224
def initialize(md,txt)
  super(md,txt)
end

Public Instance Methods

lev(tag,attrib) click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2235
    def lev(tag,attrib)
      if @txt
        %{<#{tag} class="#{attrib}">
    #{@txt}
  </#{tag}>
}
      else ''
      end
    end
lev0() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2265
def lev0 #docinfo
  lev('h0','toc')
end
lev1() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2244
def lev1
  lev('h1','toc')
end
lev2() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2247
def lev2
  lev('h2','toc')
end
lev3() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2250
def lev3
  lev('h3','toc')
end
lev4() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2253
def lev4
  lev('h4','toc')
end
lev5() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2256
def lev5
  lev('h5','toc')
end
lev6() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2259
def lev6
  lev('h6','toc')
end
lev7() click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 2262
def lev7
  lev('h7','toc')
end