class ReVIEW::IDGTOCPrinter

Constants

LABEL_LEN

Public Instance Methods

print_book(book) click to toggle source

Private Instance Methods

chapnumstr(n) click to toggle source
# File lib/review/tocprinter.rb, line 194
def chapnumstr(n)
  n ? sprintf('第%d章 ', n) : ''
end
print_children(node) click to toggle source
print_node(seq, node) click to toggle source
volume_columns(level, volstr) click to toggle source
# File lib/review/tocprinter.rb, line 198
def volume_columns(level, volstr)
  cols = ["", "", "", nil]
  cols[level - 1] = volstr
  cols[0, 3]
end