class ReVIEW::TOCParser::Chapter
Attributes
chapter_id[R]
number[RW]
Public Class Methods
new(label, chap)
click to toggle source
Calls superclass method
ReVIEW::TOCParser::Section.new
# 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
Public Instance Methods
chapter?()
click to toggle source
# File lib/review/tocparser.rb, line 223 def chapter? true end
inspect()
click to toggle source
# File lib/review/tocparser.rb, line 236 def inspect "\#<#{self.class} #{@filename}>" end
volume()
click to toggle source
# File lib/review/tocparser.rb, line 229 def volume return @volume if @volume @volume = @chapter.volume @volume.lines = estimated_lines() @volume end