# File lib/review/tocparser.rb, line 211 def initialize(label, chap) super 1, label, chap.path @chapter = chap @chapter_id = chap.id @path = chap.path @page_metric = chap.book.page_metric @volume = nil @number = nil end
# File lib/review/tocparser.rb, line 223 def chapter? true end
# File lib/review/tocparser.rb, line 236 def inspect "\#<#{self.class} #{@filename}>" end
# File lib/review/tocparser.rb, line 229 def volume return @volume if @volume @volume = @chapter.volume @volume.lines = estimated_lines() @volume end