class ReVIEW::PLAINTEXTTocBuilder
Public Instance Methods
base_block(type, lines, caption = nil)
click to toggle source
Calls superclass method
ReVIEW::PLAINTEXTBuilder#base_block
# File lib/review/tocprinter.rb, line 27 def base_block(type, lines, caption = nil) puts "\x01STARTLIST\x01" super(type, lines, caption) puts "\x01ENDLIST\x01" end
blank()
click to toggle source
# File lib/review/tocprinter.rb, line 33 def blank @blank_seen = true end
headline(level, label, caption)
click to toggle source
Calls superclass method
ReVIEW::PLAINTEXTBuilder#headline
# File lib/review/tocprinter.rb, line 17 def headline(level, label, caption) if @chapter.is_a?(ReVIEW::Book::Part) print "\x01H0\x01" # XXX: don't modify level value. level value will be handled in sec_counter#prefix() else print "\x01H#{level}\x01" end # embed header information for tocparser super(level, label, caption) end