mdc/lib/domain/presentation.rb
##
# Build the table of contents from the contained data. This method must be
# called after all slides and chapters have been added to the presentation
Build the table of contents from the contained data. This method must be
called after all slides and chapters have been added to the presentation
Build the table of contents from the contained data . This method must be called after all slides and chapters have been added to the presentation
def build_toc
      @chapters.each do |chapter|
        @toc.add(chapter.id, chapter.title)
        chapter.each do |slide|
          toc.add_sub_entry(chapter.id, slide.id, slide.title) unless slide.skip
        end
      end
    end
def build_toc @chapters . each do | chapter | @toc . add ( chapter . id , chapter . title ) chapter . each do | slide | toc . add_sub_entry ( chapter . id , slide . id , slide . title ) unless slide . skip end end end
Build the table of contents from the contained data.
Build the table of contents from the contained data .