module ReVIEW::TOCRoot

Public Instance Methods

chapter?() click to toggle source
# File lib/review/tocparser.rb, line 300
def chapter?
  false
end
each_section() { |toc| ... } click to toggle source
# File lib/review/tocparser.rb, line 311
def each_section(&block)
  each_chapter do |chap|
    yield chap.toc
  end
end
each_section_with_index() { |node, (idx += 1)| ... } click to toggle source
# File lib/review/tocparser.rb, line 304
def each_section_with_index
  idx = -1
  each_section do |node|
    yield node, (idx += 1)
  end
end
estimated_lines() click to toggle source
# File lib/review/tocparser.rb, line 321
def estimated_lines
  chapters.inject(0) {|sum, chap| sum + chap.toc.estimated_lines }
end
level() click to toggle source
# File lib/review/tocparser.rb, line 296
def level
  0
end
n_sections() click to toggle source
# File lib/review/tocparser.rb, line 317
def n_sections
  chapters.size
end