module RevealCK # # Public: A SlideBuilder knows how to build the index.html file (the # core slides) within a reveal.js presentation. # class SlideBuilder < Builder attr_reader :user_slides, :reveal_slides attr_reader :tasks attr_reader :config def initialize(args) @user_slides = args[:user_slides] @reveal_slides = args[:reveal_slides] @config = args[:config] end private def register_tasks @tasks = [] remove_default_content reveal_slides add_user_content reveal_slides, user_slides replace_title reveal_slides, config.title replace_author reveal_slides, config.author replace_theme reveal_slides, config.theme end def remove_default_content(file) add_task 'Slicing out reveal.js default slides' do begin_line_num = 38 # Line where I see