# File lib/review/book/index.rb, line 106 def display_string(id) "#{number(id)}#{I18n.t("chapter_quote", title(id))}" end
# File lib/review/book/index.rb, line 89 def item_type 'chapter' end
# File lib/review/book/index.rb, line 93 def number(id) chapter = @index.fetch(id) chapter.format_number rescue # part "#{I18n.t("part", chapter.number)}" end
# File lib/review/book/index.rb, line 100 def title(id) @index.fetch(id).title rescue # non-file part @index.fetch(id).name end