lib/review/book/base.rb in review-1.7.2 vs lib/review/book/base.rb in review-2.0.0.beta1
- old
+ new
@@ -82,18 +82,10 @@
else
config["page_metric"]
end
end
- def htmlversion
- if config["htmlversion"].blank?
- nil
- else
- config["htmlversion"].to_i
- end
- end
-
def parts
@parts ||= read_parts()
end
def parts_in_file
@@ -117,11 +109,11 @@
def each_chapter(&block)
chapters.each(&block)
end
def each_chapter_r(&block)
- chapters.reverse_each(&block)
+ chapters.reverse.each(&block)
end
def chapter_index
return @chapter_index if @chapter_index
@@ -223,15 +215,15 @@
""
end
end
def read_PART
- return @read_part if @read_part
+ return @read_PART if @read_PART
if catalog
- @read_part = catalog.parts
+ @read_PART = catalog.parts
else
- @read_part = File.read("#{@basedir}/#{config["part_file"]}")
+ @read_PART = File.read("#{@basedir}/#{config["part_file"]}")
end
end
def part_exist?
if catalog